We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 122df4e + ebd8e85 commit 3ff1613Copy full SHA for 3ff1613
beer_type.md
@@ -13,10 +13,10 @@ hefeweizen
13
14
```ruby
15
kinds = %w|IPA brown_ale pilsner lager lambic hefweizen|
16
-resource :beer, only: [:show], constraints: {id: Regexp.new(kinds.join('|'))}
+resources :beer, only: [:show], constraints: {id: Regexp.new(kinds.join('|'))}
17
18
rails routes
19
20
Prefix Verb URI Pattern Controller#Action
21
beer GET /beer/:id(.:format) beer#show {:id=>/IPA|brown_ale|pilsner|lager|lambic|hefweizen/}
22
-```
+```
0 commit comments