Permalink
Browse files

Revert "Remove Obsolute root specifiying short syntax"

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...
1 parent 1ad0b37 commit d31b765628db6aa9ffa9a92bfa2401067e92bb6c @vijaydev vijaydev committed May 23, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 guides/source/routing.textile
@@ -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.

0 comments on commit d31b765

Please sign in to comment.