Permalink
Browse files

Remove Obsolute root specifiying short syntax

This syntax does not seem to work. Throws the error
  "can't convert String into Hash (TypeError)"

Tested on:
* Ruby 1.9.3
* Rails 3.2.3
  • Loading branch information...
1 parent 09be692 commit feaa7b35a0214240eb34780ab51b843571e74904 @gaurish gaurish committed May 22, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 guides/source/routing.textile
@@ -629,7 +629,6 @@ 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 feaa7b3

Please sign in to comment.