1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

View file

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