Skip to content

Commit

Permalink
Revert "Remove Obsolute root specifiying short syntax"
Browse files Browse the repository at this point in the history
This reverts commit feaa7b3.

Reason: Incorrect change. That's a Rails 4 feature and will not
obviously work in 3.2.3.

[ci skip]
  • Loading branch information
vijaydev committed May 23, 2012
1 parent 1ad0b37 commit d31b765
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions guides/source/routing.textile
Expand Up @@ -629,6 +629,7 @@ You can specify what Rails should route +"/"+ to with the +root+ method:

<ruby>
root :to => 'pages#main'
root 'pages#main' # shortcut for the above
</ruby>

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.
Expand Down

0 comments on commit d31b765

Please sign in to comment.