提交 0b5671cc 编写于 作者: U Umar Sheikh

for the root route to work, we need to delete the public/index.html.erb

file as well
上级 a81f68e8
......@@ -595,7 +595,7 @@ You can specify what Rails should route +"/"+ to with the +root+ method:
root :to => 'pages#main'
</ruby>
You should put the +root+ route at the end of the file.
You should put the +root+ route at the end of the file. You also need to delete the public/index.html.erb file for the root route to take effect.
h3. Customizing Resourceful Routes
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册