I’m trying to create a menu. I have a controller that takes two
attributes, like this:
def category(gender, category)
@ads = Ad.find_all_by_gender_and_category(gender,
category).paginate(:page => params[:page])
@title = “Startsidan”
And in my view I have a list with menu options:
And my routes it look like this:
match ‘/dam-accessoarer’, :to => “pages#category(‘dam’,
But it doesn’t work.
I get the following error.
The action ‘category(‘dam’, ‘Accessoarer’)’ could not be found for
Any help on how to solve it would be greatly appreciated!