diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-07-21 09:16:52 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-07-21 09:16:52 +0200 |
commit | b84918057b87cf2ddce6325d3c2dd39c2da1739f (patch) | |
tree | e49bf4a1821d655ab28fc1ea76ad38aa09fc9931 /guides/source | |
parent | 08754f12e65a9ec79633a605e986d0f1ffa4b251 (diff) | |
parent | 7464d00dd73c524011e784cdf30cbb55d1662e7b (diff) | |
download | rails-b84918057b87cf2ddce6325d3c2dd39c2da1739f.tar.gz rails-b84918057b87cf2ddce6325d3c2dd39c2da1739f.tar.bz2 rails-b84918057b87cf2ddce6325d3c2dd39c2da1739f.zip |
Merge pull request #16236 from y-yagi/patch-1
[ci skip] Fix code in Routing Guide
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 c8f8ba3044..7a7334f25b 100644 --- a/guides/source/routing.md +++ b/guides/source/routing.md @@ -681,7 +681,7 @@ You can also constrain a route based on any method on the [Request object](actio You specify a request-based constraint the same way that you specify a segment constraint: ```ruby -get 'photos', constraints: { subdomain: 'admin' } +get 'photos', to: 'photos#index', constraints: { subdomain: 'admin' } ``` You can also specify constraints in a block form: |