diff options
| author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2014-07-21 11:27:20 +0900 |
|---|---|---|
| committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2014-07-21 11:27:20 +0900 |
| commit | 7464d00dd73c524011e784cdf30cbb55d1662e7b (patch) | |
| tree | e49bf4a1821d655ab28fc1ea76ad38aa09fc9931 | |
| parent | 08754f12e65a9ec79633a605e986d0f1ffa4b251 (diff) | |
| download | rails-7464d00dd73c524011e784cdf30cbb55d1662e7b.tar.gz rails-7464d00dd73c524011e784cdf30cbb55d1662e7b.tar.bz2 rails-7464d00dd73c524011e784cdf30cbb55d1662e7b.zip | |
[ci skip] Fix code in Routing Guide
| -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: |
