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 committed Dec 13, 2010
1 parent a81f68e commit 0b5671ccca4a9f55379c913a211d669e241ad20c
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 0b5671c

Please sign in to comment.