No route matches "/" and rake routes empty


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:

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:

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


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