mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
for the root route to work, we need to delete the public/index.html.erb
file as well
This commit is contained in:
parent
a81f68e879
commit
0b5671ccca
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue