Skip to content
Browse files

root method options are the same as the match method

  • Loading branch information...
1 parent d575229 commit 55a232a164d01ba9515d457b570d34849a17dd72 @radar radar committed with fxn Dec 10, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/action_dispatch/routing/mapper.rb
2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -246,6 +246,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 55a232a

Please sign in to comment.
Something went wrong with that request. Please try again.