joshbuddy/http_router — Issue #22: Controllers with wildcard
Author: basex
Created: 2011-12-14 05:12:27+00:00
State: open

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 get:

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