I want to use regular expressions inside my routes. I have an Products controller, but I want a different URL structure to access the products
These URLs should call a action in my controller (Products:show_category(:category)
)
Is something like this possible?
match "(this|that|andthat)" => "products#show_category", :category => $1
the action should look like this
def show_category
puts params[:category] # <-- "this" if http://host/this/ is called
# ...
end