diff options
author | Saulius Grigaliunas <saulius@ninja.lt> | 2012-05-29 23:44:30 +0100 |
---|---|---|
committer | Saulius Grigaliunas <saulius@ninja.lt> | 2012-05-29 23:44:30 +0100 |
commit | a546f7fb268846de875e017951221b5290f9f409 (patch) | |
tree | 1b32212193ab12744722ac81c1ab14522eaacc3d | |
parent | 87ba0b48cd985b83c82cb82070b3d6ea83d029bd (diff) | |
download | rails-a546f7fb268846de875e017951221b5290f9f409.tar.gz rails-a546f7fb268846de875e017951221b5290f9f409.tar.bz2 rails-a546f7fb268846de875e017951221b5290f9f409.zip |
Revert my own commit, didnt notice that this was intentional. [ci skip]
-rw-r--r-- | guides/source/routing.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/routing.textile b/guides/source/routing.textile index 51d7c85fca..0773a96c67 100644 --- a/guides/source/routing.textile +++ b/guides/source/routing.textile @@ -486,7 +486,7 @@ get 'photos/:id' => 'photos#show', :id => /[A-Z]\d{5}/ +:constraints+ takes regular expressions with the restriction that regexp anchors can't be used. For example, the following route will not work: <ruby> -get '/:id' => 'posts#show', :constraints => {:id => /\d/} +get '/:id' => 'posts#show', :constraints => {:id => /^\d/} </ruby> However, note that you don't need to use anchors because all routes are anchored at the start. |