Kyle Hotchkiss
Kyle Hotchkiss

Reputation: 11132

Trying to learn RoR, but keep getting Page doesn't exist errors

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

Answers (3)

sameera207
sameera207

Reputation: 16629

  1. just leave the mod_passenger until you find the error. Do like this:

    • open a shell
    • go to your Rails app directory
    • 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.

  2. check your database connection is OK in config/database.yml file

Upvotes: 1

Horse Voice
Horse Voice

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

Nikita Rybak
Nikita Rybak

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

Related Questions