root method options are the same as the match method

This commit is contained in:
Ryan Bigg
2010-12-10 09:34:40 +10:00
parent fe0e3880e8
commit f0d4b7f2a6

View File

@@ -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.