map.root is not working in rails 2.3
map.ro开发者_开发知识库ot :controller => "main", :action => "index"
is not redirecting the main controller to home page to localhost:3000
any suggestions?
Have you deleted index.html?
you must delete public/index.html
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
精彩评论