aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorlanzhiheng <lanzhihengrj@gmail.com>2019-01-09 10:41:52 +0800
committerlanzhiheng <lanzhihengrj@gmail.com>2019-01-11 08:09:44 +0800
commit60570b9b8aa5fea459e4aa7d4b7148f7db725448 (patch)
treee227f2ed224da141ec37b4e11f07891d217afdae /guides/source
parent80c7038bbc8e83762f4396b18260f470d8621995 (diff)
downloadrails-60570b9b8aa5fea459e4aa7d4b7148f7db725448.tar.gz
rails-60570b9b8aa5fea459e4aa7d4b7148f7db725448.tar.bz2
rails-60570b9b8aa5fea459e4aa7d4b7148f7db725448.zip
[ci skip] improve doc in `Adding Member Routes` section of routing chapter.
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/routing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index 0a0f1b6754..a33ac6a589 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -519,7 +519,7 @@ resources :photos do
end
```
-You can leave out the `:on` option, this will create the same member route except that the resource id value will be available in `params[:photo_id]` instead of `params[:id]`.
+You can leave out the `:on` option, this will create the same member route except that the resource id value will be available in `params[:photo_id]` instead of `params[:id]`. Route helpers will also be renamed from `preview_photo_url` and `preview_photo_path` to `photo_preview_url` and `photo_preview_path`.
#### Adding Collection Routes