Skip to content
This repository
Browse code

Revert my own commit, didnt notice that this was intentional. [ci skip]

  • Loading branch information...
commit a546f7fb268846de875e017951221b5290f9f409 1 parent 87ba0b4
Saulius Grigaliunas saulius authored

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

  1. +1 1  guides/source/routing.textile
2  guides/source/routing.textile
Source Rendered
@@ -486,7 +486,7 @@ get 'photos/:id' => 'photos#show', :id => /[A-Z]\d{5}/
486 486 +:constraints+ takes regular expressions with the restriction that regexp anchors can't be used. For example, the following route will not work:
487 487
488 488 <ruby>
489   -get '/:id' => 'posts#show', :constraints => {:id => /\d/}
  489 +get '/:id' => 'posts#show', :constraints => {:id => /^\d/}
490 490 </ruby>
491 491
492 492 However, note that you don't need to use anchors because all routes are anchored at the start.

0 comments on commit a546f7f

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