From d5601041fe740711ec0121da956d7e9a16b7893b Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Thu, 29 May 2014 00:20:40 -0700 Subject: Add @senny's changed from #14741, including code font for `resources` options, and wrapped to 80 chars. [ci skip] --- guides/source/routing.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'guides/source/routing.md') 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 -- cgit v1.2.3