Created
January 12, 2014 12:01
-
-
Save davinmsu/8383765 to your computer and use it in GitHub Desktop.
negative constraints for rails routing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
match '/:id', to: 'refinery/blog/categories#show', constraints: { id: /(?!.*?refinery).*/ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment