Skip to content

Commit 2ab0094

Browse files
authored
Merge pull request rails#53760 from htetwunsan/docs/guides
Fix example code of Routing(Request-Based Constraints) [ci skip]
2 parents 4944454 + 2cf23bd commit 2ab0094

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

guides/source/routing.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -822,10 +822,8 @@ Will match an incoming request with a path to `admin` subdomain.
822822
You can also specify constraints by using a [`constraints`][] block:
823823

824824
```ruby
825-
namespace :admin do
826-
constraints subdomain: "admin" do
827-
resources :photos
828-
end
825+
constraints subdomain: "admin" do
826+
resources :photos
829827
end
830828
```
831829

0 commit comments

Comments
 (0)