Skip to content

Commit

Permalink
root method options are the same as the match method
Browse files Browse the repository at this point in the history
  • Loading branch information
radar authored and fxn committed Dec 11, 2010
1 parent d575229 commit 55a232a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions actionpack/lib/action_dispatch/routing/mapper.rb
Expand Up @@ -246,6 +246,8 @@ def initialize(set) #:nodoc:
# #
# root :to => 'pages#main' # 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>, # 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.
Expand Down

0 comments on commit 55a232a

Please sign in to comment.