Permalink
Browse files

Add @senny's changed from #14741, including code font for `resources`

options, and wrapped to 80 chars. [ci skip]
  • Loading branch information...
1 parent ec7fee4 commit d5601041fe740711ec0121da956d7e9a16b7893b @zzak zzak committed May 29, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 guides/source/routing.md
View
@@ -1046,7 +1046,10 @@ This will create routing helpers such as `magazine_periodical_ads_url` and `edit
### Overriding Named Route Parameters
-The `:param` option overrides the default resource identifier `:id` allowing you to use the specified name in your controller action to find the specific resource in the database.
+The `:param` option overrides the default resource identifier `:id` (name of
+the [dynamic segment](routing.html#dynamic-segments) used to generate the
+routes). You can access that segment from your controller using
+`params[<:param>]`.
```ruby
resources :videos, param: :identifier

0 comments on commit d560104

Please sign in to comment.