1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revert "Merge pull request #12208 from mjhoy/patch-1"

This reverts commit ab5cd54b7e, reversing
changes made to cdc10c898d.

Reason: This way of defining root path is still supported. See
d262773ab7/actionpack/test/controller/routing_test.rb (L450-457)
This commit is contained in:
Rafael Mendonça França 2013-09-12 15:58:15 -03:00
parent d262773ab7
commit 0851bd95c7

View file

@ -319,6 +319,10 @@ module ActionDispatch
# #
# For options, see +match+, as +root+ uses it internally. # For options, see +match+, as +root+ uses it internally.
# #
# You can also pass a string which will expand
#
# root 'pages#main'
#
# You should put the root route at the top of <tt>config/routes.rb</tt>, # 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 # because this means it will be matched first. As this is the most popular route
# of most Rails applications, this is beneficial. # of most Rails applications, this is beneficial.