Browse files

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

[ci skip] Fix code in Routing Guide
  • Loading branch information...
senny committed Jul 21, 2014
2 parents 08754f1 + 7464d00 commit b84918057b87cf2ddce6325d3c2dd39c2da1739f
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/
@@ -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:
-get 'photos', constraints: { subdomain: 'admin' }
+get 'photos', to: 'photos#index', constraints: { subdomain: 'admin' }
You can also specify constraints in a block form:

0 comments on commit b849180

Please sign in to comment.