Skip to content

Commit 2cf23bd

Browse files
committed
Fix: example code of Request-Based Constraints
1 parent 4944454 commit 2cf23bd

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)