Skip to content
This repository
Browse code

Fixing typo in Routing Guide.

  • Loading branch information...
commit 83bc2c27605db34be18f2e4f97890d04c4cc97e4 1 parent 65796bb
Ryan Sandridge dissolved authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  railties/guides/source/routing.textile
2  railties/guides/source/routing.textile
Source Rendered
@@ -655,7 +655,7 @@ You can use the +:constraints+ option to specify a required format on the implic
655 655 resources :photos, :constraints => {:id => /[A-Z][A-Z][0-9]+/}
656 656 </ruby>
657 657
658   -This declaration constraints the +:id+ parameter to match the supplied regular expression. So, in this case, the router would no longer match +/photos/1+ to this route. Instead, +/photos/RR27+ would match.
  658 +This declaration constrains the +:id+ parameter to match the supplied regular expression. So, in this case, the router would no longer match +/photos/1+ to this route. Instead, +/photos/RR27+ would match.
659 659
660 660 You can specify a single constraint to apply to a number of routes by using the block form:
661 661

0 comments on commit 83bc2c2

Please sign in to comment.
Something went wrong with that request. Please try again.