1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

file as well
This commit is contained in:
Umar Sheikh 2010-12-13 11:18:49 +05:00
parent a81f68e879
commit 0b5671ccca

View file

@ -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