\"index\" is not redirecting the main controller to home page to localhost:3000" />
开发者

map.root is not working in rails 2.3

开发者 https://www.devze.com 2022-12-25 03:14 出处:网络
map.ro开发者_开发知识库ot :controller => \"main\", :action => \"index\" is not redirecting the main controller to home page to localhost:3000

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

0

精彩评论

暂无评论...
验证码 换一张
取 消