Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing typo in Routing Guide.

  • Loading branch information...
commit 83bc2c27605db34be18f2e4f97890d04c4cc97e4 1 parent 65796bb
@dissolved dissolved authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/guides/source/routing.textile
View
2  railties/guides/source/routing.textile
@@ -655,7 +655,7 @@ You can use the +:constraints+ option to specify a required format on the implic
resources :photos, :constraints => {:id => /[A-Z][A-Z][0-9]+/}
</ruby>
-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.
+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.
You can specify a single constraint to apply to a number of routes by using the block form:
Please sign in to comment.
Something went wrong with that request. Please try again.