Reputation: 11132
I'm trying to learn RoR and I keep getting pesky page doesn't exist pages. I deleted the index.html file out of my public folder and created a root route in my routes file but I still am getting that error. I am running ubuntu 10.04 with mod_passenger and ruby enterprise edition.
Upvotes: 1
Views: 127
Reputation: 16629
just leave the mod_passenger until you find the error. Do like this:
ruby script/server
(Rails < 3).
It should start the server in your console. and browse the page you want. If you are getting an error it should display in the console.
check your database connection is OK in config/database.yml
file
Upvotes: 1
Reputation: 8348
Can you please paste the content of your routes.rb file?
Also, make sure you have a controller created for that page and it should contain the index action.
def index
end
Upvotes: 0
Reputation: 68046
rake routes
is the standard shell command to see all your routes. Check if url you're trying to access is in the list. If it's not, show us statement in routes.rb
you use to generate this route and url you're trying to access.
Upvotes: 0