No route matches "/" and rake routes empty

Hello,

I am upgrading my Rails application from Rails 2 to Rails 3 and I’m
having troubles getting routes.rb to work. I get the following error
when I visit my application:

Routing Error
No route matches "/"

When I run “rake routes”, the output is blank.

What I have already done:

  • Googled and searched this forum for the problem
  • Checked that routes.rb is in the correct location
  • Created a syntax error in routes.rb–the error is recognized, so the
    file is loaded
  • I removed public/index.html
  • I have gone through my routes.rb and think it has the correct syntax

Here is my routes.rb file:

http://pastie.org/private/gi1js8shnuqt3tncxglxw

I would appreciate any suggestions about where to look for the problem.

Thank you,

  • Peter A.

On 20 April 2011 00:35, Peter A. [email protected] wrote:

Here is my routes.rb file:

http://pastie.org/private/gi1js8shnuqt3tncxglxw

My rails 3 app routes .rb starts
MyAppName::Application.routes.draw do
yours has no draw. Could this be the issue?

Colin

Hi Colin,

Now I’m getting errors from my routes.rb file, which is promising! I’ll
let you know whether it ends up working well after I fix the bugs.

Thank you,

  • Peter