aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/routing.textile
diff options
context:
space:
mode:
authorRyan Sandridge <ryan@sandridgelabs.com>2011-12-10 15:58:08 -0500
committerRyan Sandridge <ryan@sandridgelabs.com>2011-12-10 15:58:08 -0500
commit83bc2c27605db34be18f2e4f97890d04c4cc97e4 (patch)
treefaf307931d568e490a907967670190dd150653a7 /railties/guides/source/routing.textile
parent65796bb5fdb5f572ac64498cd2ab02efd55d31dd (diff)
downloadrails-83bc2c27605db34be18f2e4f97890d04c4cc97e4.tar.gz
rails-83bc2c27605db34be18f2e4f97890d04c4cc97e4.tar.bz2
rails-83bc2c27605db34be18f2e4f97890d04c4cc97e4.zip
Fixing typo in Routing Guide.
Diffstat (limited to 'railties/guides/source/routing.textile')
-rw-r--r--railties/guides/source/routing.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile
index 29c729592b..0823fb14e3 100644
--- a/railties/guides/source/routing.textile
+++ b/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: