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

[ci skip] Fix code in Routing Guide

This commit is contained in:
yuuji.yaginuma 2014-07-21 11:27:20 +09:00
parent 08754f12e6
commit 7464d00dd7

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: