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.
A:
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.
Nikita Rybak
2010-09-27 04:16:15
Yeah the url is on there, but now I'm getting a "something went wrong error" with nothing logged at all.
Kyle
2010-09-27 04:36:19
@Kyle Check server logs. If you started server through console command, error will also be displayed in console.
Nikita Rybak
2010-09-27 04:40:15
If not, you can check the contents of ~RAILS_ROOT/log/development.log
Chubas
2010-09-27 05:50:27
A:
Hi Kyle
1 -just leave the mod_passenger untill you find the error. do like this
open a shell go to your rails app directory ruby script/server ( rail < 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. (once you get the error pls post it here so that we'll be able to help you)
2 - check your database connection is ok. in config/database.yml file
cheers
sameera
sameera207
2010-09-27 05:02:39