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:
commit
b84918057b
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
You specify a request-based constraint the same way that you specify a segment constraint:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
get 'photos', constraints: { subdomain: 'admin' }
|
get 'photos', to: 'photos#index', constraints: { subdomain: 'admin' }
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also specify constraints in a block form:
|
You can also specify constraints in a block form:
|
||||||
|
|
Loading…
Reference in a new issue