aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/routing.md
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-05-29 00:20:40 -0700
committerZachary Scott <e@zzak.io>2014-05-29 00:20:40 -0700
commitd5601041fe740711ec0121da956d7e9a16b7893b (patch)
tree30a657f44fee2a45f4fcaeda79879c5d3d2ef79e /guides/source/routing.md
parentec7fee498291b90983cf130a81ad1647b10f1c8b (diff)
downloadrails-d5601041fe740711ec0121da956d7e9a16b7893b.tar.gz
rails-d5601041fe740711ec0121da956d7e9a16b7893b.tar.bz2
rails-d5601041fe740711ec0121da956d7e9a16b7893b.zip
Add @senny's changed from #14741, including code font for `resources`
options, and wrapped to 80 chars. [ci skip]
Diffstat (limited to 'guides/source/routing.md')
-rw-r--r--guides/source/routing.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index 574a1f9c68..c8f8ba3044 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -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