Re: [Rails] Newbie - Create menu and send parameters to controller from view.

2010-10-09 Thread David Kahn
On Sat, Oct 9, 2010 at 7:41 AM, Anders_P wrote: > Hello! > > 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 = "S

[Rails] Newbie - Create menu and send parameters to controller from view.

2010-10-09 Thread Anders_P
Hello! 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" render 'home' end And in my view I have a list wit