mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
root method options are the same as the match method
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user