Permalink
Browse files

Update guides/source/routing.md

It's no longer necessary to delete public/index.html for the root route to take effect.
  • Loading branch information...
George Claghorn
George Claghorn committed Dec 11, 2012
1 parent 0807f6e commit 6e98989c95c3e90ffef4ddad891d0893ef08f26f
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/routing.md
View
@@ -793,7 +793,7 @@ root to: 'pages#main'
root 'pages#main' # shortcut for the above
```
You should put the `root` route at the top of the file, because it is the most popular route and should be matched first. You also need to delete the `public/index.html` file for the root route to take effect.
You should put the `root` route at the top of the file, because it is the most popular route and should be matched first.
NOTE: The `root` route only routes `GET` requests to the action.

0 comments on commit 6e98989

Please sign in to comment.