diff options
author | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2019-01-11 14:18:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-11 14:18:41 -0500 |
commit | c11cf116f320990a537c0921bb9325f7fa22e34f (patch) | |
tree | d0ae3e600186174ca7f904b9d9ee5cf648235d54 /guides/source | |
parent | eedd9548ade88085a38e667a13b54fdbcde8e45b (diff) | |
parent | 60570b9b8aa5fea459e4aa7d4b7148f7db725448 (diff) | |
download | rails-c11cf116f320990a537c0921bb9325f7fa22e34f.tar.gz rails-c11cf116f320990a537c0921bb9325f7fa22e34f.tar.bz2 rails-c11cf116f320990a537c0921bb9325f7fa22e34f.zip |
Merge pull request #34902 from lanzhiheng/improve-doc-in-routing-2-10-adding-member-routes
improve doc in `Adding Member Routes` section of routing chapter.
Diffstat (limited to 'guides/source')
-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 |