aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorGaurish Sharma <contact@gaurishsharma.com>2012-05-22 19:29:25 +0530
committerGaurish Sharma <contact@gaurishsharma.com>2012-05-22 19:29:25 +0530
commitfeaa7b35a0214240eb34780ab51b843571e74904 (patch)
treec3b607104dd4dbd707a72690fe9af2610b778dc8 /guides
parent09be6921590a7e4ded515deb8ce77566fa41fed5 (diff)
downloadrails-feaa7b35a0214240eb34780ab51b843571e74904.tar.gz
rails-feaa7b35a0214240eb34780ab51b843571e74904.tar.bz2
rails-feaa7b35a0214240eb34780ab51b843571e74904.zip
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
Diffstat (limited to 'guides')
-rw-r--r--guides/source/routing.textile1
1 files changed, 0 insertions, 1 deletions
diff --git a/guides/source/routing.textile b/guides/source/routing.textile
index 4a50edbb15..6081651364 100644
--- a/guides/source/routing.textile
+++ b/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.