Merge pull request #16236 from y-yagi/patch-1

[ci skip] Fix code in Routing Guide
This commit is contained in:
Yves Senn 2014-07-21 09:16:52 +02:00
commit b84918057b

@ -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: