Created
March 19, 2012 13:22
-
-
Save EricLondon/2111910 to your computer and use it in GitHub Desktop.
Rails route that works with: http://localhost:3000/posts/tag/Drupal%205.x
This file contains hidden or 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
# I created a Post controller to accept a parameter for tag name. | |
# The problem is, the tag "Drupal 6.x", or anything with a period was triggering :format | |
get 'posts/tag/:tag' => 'posts#tag', :format => false, :constraints => {:tag => /.*/} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment