Hi all
My problem is simple :
I have a link which points on : "products/category/#{category.id}/#{category.name}"
In my route, I'd like this link calls "products/index" BUT I want this URL in the browser : "products/category/#{name}"
Using Rails 3 I instinctively tried :
match "products/category/:id/:name", :to => "products#index", :as => "products/category/#{name}"
But the server doesn't even run because of #{name} in :as I don't know how to precise a dynamic value in :as or maybe I am totally wrong.
Thanks