Permalink
Browse files

Add missing `:param` option from the docs for Mapper#match [ci skip]

Option discovered by @zackperdue in #14741, implemented in #5581.
  • Loading branch information...
1 parent d560104 commit 3b606a32595bf3547dbe74a2304d048c2dd2f6b1 @zzak zzak committed May 29, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -422,6 +422,12 @@ def root(options = {})
# [:action]
# The route's action.
#
+ # [:param]
+ # Overrides the default resource identifier `:id` (name of the
+ # dynamic segment used to generate the routes).
+ # You can access that segment from your controller using
+ # <tt>params[<:param>]</tt>.
+ #
# [:path]
# The path prefix for the routes.
#

0 comments on commit 3b606a3

Please sign in to comment.