I would like to limit the results returned by the category_id. I can
manually insert the category_id :conditions => ['category_id = 1'] but I
would like it to respond to the input from the search form instead.
:conditions => ["category_id like ?", params[:category_id]+"%"]
:conditions => ["category_id ?"]
I would like to limit the results returned by the category_id. I can
manually insert the category_id :conditions => ['category_id = 1'] but I
would like it to respond to the input from the search form instead.
:conditions => ["category_id like ?", params[:category_id]+"%"]
:conditions => ["category_id ?"]