Update guides/source/routing.md

It's no longer necessary to delete public/index.html for the root route to take effect.
This commit is contained in:
George Claghorn 2012-12-11 04:29:19 -05:00
parent 0807f6e861
commit 6e98989c95
1 changed files with 1 additions and 1 deletions

View File

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