http_router icon indicating copy to clipboard operation
http_router copied to clipboard

Controllers with wildcard

Open basex opened this issue 14 years ago • 0 comments

In the last version of the http_router the controllers with a wildcard don't seem to be working correctly:

I'm trying to do:

get :subpermalinks, :map => "/:permalink/*subpermalinks", :priority => :low do |permalink,subpermalinks|

When I access a url like "/electronics/apple" I get:

permalink = ["electronics","apple"] subpermalinks = "electronics"

before I used to correctly get:

permalink = "electronics" subpermalinks = ["apple"]

basex avatar Dec 14 '11 05:12 basex