Permalink
Browse files

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

file as well
  • Loading branch information...
umarsheikh authored and fxn committed Dec 13, 2010
1 parent 6bf482e commit 8fdf5315abca6f020b8c705f6f5fc7a5b2259279
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/routing.textile
@@ -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

0 comments on commit 8fdf531

Please sign in to comment.