From 7464d00dd73c524011e784cdf30cbb55d1662e7b Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Mon, 21 Jul 2014 11:27:20 +0900 Subject: [ci skip] Fix code in Routing Guide --- guides/source/routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/routing.md b/guides/source/routing.md index c8f8ba3044..7a7334f25b 100644 --- a/guides/source/routing.md +++ b/guides/source/routing.md @@ -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: -- cgit v1.2.3