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 can’t figure this one out.
The view is:
<% form_tag search_dudes_path do -%>
<%= collection_select(:dude, :category_id, Category.all, :id, :name) %>. . .