aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-05-23 22:49:39 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-05-23 22:50:21 +0530
commitd31b765628db6aa9ffa9a92bfa2401067e92bb6c (patch)
tree9a1168dfbd3d62ca864f28cc6fa337ef3e92f3e8 /guides
parent1ad0b378cc081937c117577ab628f2160fcc448d (diff)
downloadrails-d31b765628db6aa9ffa9a92bfa2401067e92bb6c.tar.gz
rails-d31b765628db6aa9ffa9a92bfa2401067e92bb6c.tar.bz2
rails-d31b765628db6aa9ffa9a92bfa2401067e92bb6c.zip
Revert "Remove Obsolute root specifiying short syntax"
This reverts commit feaa7b35a0214240eb34780ab51b843571e74904. Reason: Incorrect change. That's a Rails 4 feature and will not obviously work in 3.2.3. [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/routing.textile1
1 files changed, 1 insertions, 0 deletions
diff --git a/guides/source/routing.textile b/guides/source/routing.textile
index 6081651364..4a50edbb15 100644
--- a/guides/source/routing.textile
+++ b/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.