Skip to content

Instantly share code, notes, and snippets.

@alexvollmer
Created January 23, 2009 01:37
Show Gist options
  • Save alexvollmer/50831 to your computer and use it in GitHub Desktop.
Save alexvollmer/50831 to your computer and use it in GitHub Desktop.
match(%r[/v1/entities/(.+?)/(.+?)(?:\.(xml|html))?$]).
to(:controller => 'v1', :action => 'facets_for_entity',
:type => "[1]", :id => "[2]", :format => "[3]")
# calls to /v1/entities/foo/bar or /v1/entities/foo/bar.xml
# result in 500 error with the following message:
# Name Error 500: undefined local variable or method `path2' for Merb::Router:Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment