aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/routing.md
diff options
context:
space:
mode:
authorPablo Torres <tn.pablo@gmail.com>2012-12-02 16:31:12 -0500
committerPablo Torres <tn.pablo@gmail.com>2012-12-02 16:57:47 -0500
commit1d36963754d4bb0fdd563c3354ff8aae805577a0 (patch)
tree389a66a0e1db9dbc722088ec64b24689b60f7e19 /guides/source/routing.md
parent25e75153b4a8f395bded7c82e63e2e188e7acea2 (diff)
downloadrails-1d36963754d4bb0fdd563c3354ff8aae805577a0.tar.gz
rails-1d36963754d4bb0fdd563c3354ff8aae805577a0.tar.bz2
rails-1d36963754d4bb0fdd563c3354ff8aae805577a0.zip
Add counterexample for regex [ci skip]
Diffstat (limited to 'guides/source/routing.md')
-rw-r--r--guides/source/routing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index 81eb1e141b..45eef7443b 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -634,7 +634,7 @@ You can use the `:constraints` option to enforce a format for a dynamic segment:
get 'photos/:id', to: 'photos#show', constraints: { id: /[A-Z]\d{5}/ }
```
-This route would match paths such as `/photos/A12345`. You can more succinctly express the same route this way:
+This route would match paths such as `/photos/A12345`, but not `/photos/893`. You can more succinctly express the same route this way:
```ruby
get 'photos/:id', to: 'photos#show', id: /[A-Z]\d{5}/