diff options
author | lanzhiheng <lanzhihengrj@gmail.com> | 2019-01-09 10:41:52 +0800 |
---|---|---|
committer | lanzhiheng <lanzhihengrj@gmail.com> | 2019-01-11 08:09:44 +0800 |
commit | 60570b9b8aa5fea459e4aa7d4b7148f7db725448 (patch) | |
tree | e227f2ed224da141ec37b4e11f07891d217afdae /guides | |
parent | 80c7038bbc8e83762f4396b18260f470d8621995 (diff) | |
download | rails-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')
-rw-r--r-- | guides/source/routing.md | 2 |
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 |