map.root :controller => "main", :action => "index"
is not redirecting the main controller to home page to localhost:3000
any suggestions?
map.root :controller => "main", :action => "index"
is not redirecting the main controller to home page to localhost:3000
any suggestions?
down vote
Hi
I have a slightly different problem. I've set up a map.root entry and it works with mongrel. However when I use apache2 as the web server with Passenger module I get a '500' error. If I re-instate my /public/index.html then it works under apache2.
I have tried to go directly as:
This also gives me the same '500' error.
Please can somebody tell me what I'm doing wrong?
Hi
I found someone else who had had the same problem. Turns out that Passenger is running in production mode whilst my app was in development mode.
I put Passenger into development mode by adding the following line to my Virtual Hosts file
RailsEnv = development
Restarted Apache and it all works!!
Phew!
Purvez