Displaying 1 result from an estimated 1 matches for "category_id_eq_any".
2013 May 27
3
Ransack, acts-as-taggable-on and checkboxes in search form
...ed.
Also a have categories, projects belong to categories. So the checkboxes
for categories work as expected. But how can i do checkboxes for tags?
Here''s my form for search:
= search_form_for @search do |f|
- @categories.each do |category|
= check_box_tag(''q[category_id_eq_any][]'', category.id)
= category.name
= f.text_field :budjet_gteq
= f.text_field :budjet_lteq
- @tags.each do |tag|
= check_box_tag(''q[tags_id_eq_all][]'', tag.id)
= tag.name
That''s what i have in console after submiting th...