Permalink
Browse files

root method options are the same as the match method

  • Loading branch information...
1 parent fe0e388 commit f0d4b7f2a655ca2fb435af798714fee2de232d1e @radar radar committed Dec 9, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -247,6 +247,8 @@ def initialize(set) #:nodoc:
#
# 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.

0 comments on commit f0d4b7f

Please sign in to comment.