1
我routes.rb
有以下2行:基本的Rails3路线问题?
match "/", :to => "main#index"
match "main/index", :to => "main#index"
当我在浏览器中键入localhost:3000/main/index
我看到正确的页面(views/main/index.html.erb
)。
但是,如果我只输入localhost:3000
,我会看到public/index.html
(我希望看到views/main/index.html.erb
以及)。
我错过了什么?
太好了,谢谢! – 2010-12-09 03:33:52