aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-12-10 09:34:40 +1000
committerRyan Bigg <radarlistener@gmail.com>2010-12-10 09:34:40 +1000
commitf0d4b7f2a655ca2fb435af798714fee2de232d1e (patch)
tree5179b5da8a6be9a8bd93433a5f3d6d47d4c73439 /actionpack
parentfe0e3880e8ce8311882f3856b689c2f79a13ced4 (diff)
downloadrails-f0d4b7f2a655ca2fb435af798714fee2de232d1e.tar.gz
rails-f0d4b7f2a655ca2fb435af798714fee2de232d1e.tar.bz2
rails-f0d4b7f2a655ca2fb435af798714fee2de232d1e.zip
root method options are the same as the match method
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index cf95f6fa53..3039f88f71 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -247,6 +247,8 @@ module ActionDispatch
#
# root :to => 'pages#main'
#
+ # For options, see the +match+ method's documentation, as +root+ uses it internally.
+ #
# You should put the root route at the top of <tt>config/routes.rb</tt>,
# because this means it will be matched first. As this is the most popular route
# of most Rails applications, this is beneficial.