The functionality I m looking for: I have a form that will search my Proposal model. I want the form to contain a select box and display the categories I have. Now, category is merely a column in my Proposal Model, so the following code from railscasts does not work (as it assumes a category table and use of category_id)
<%= f.collection_select :category_id_equals, Category.all, :id, :name, :include_blank => true %>
The closest thing I got was
<%= f.collection_select :category_equals, Proposal.category_like(""), :id, :category, :include_blank => true %>
This would work perfect if it only brought uniques from the category column, not repeating cases :-/.
Also...this leads me to question -- should I utilize category_id instead and create a categories table even though it would just have and id and name column?
Thanks in advance :-)