Skip to content

Commit

Permalink
for the root route to work, we need to delete the public/index.html.erb
Browse files Browse the repository at this point in the history
file as well
  • Loading branch information
umarsheikh committed Dec 13, 2010
1 parent a81f68e commit 0b5671c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/routing.textile
Expand Up @@ -595,7 +595,7 @@ You can specify what Rails should route +"/"+ to with the +root+ method:
root :to => 'pages#main' root :to => 'pages#main'
</ruby> </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 h3. Customizing Resourceful Routes


Expand Down

0 comments on commit 0b5671c

Please sign in to comment.