Skip to content

Instantly share code, notes, and snippets.

@bayendor
Last active December 27, 2015 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bayendor/7385546 to your computer and use it in GitHub Desktop.
Save bayendor/7385546 to your computer and use it in GitHub Desktop.
Checkbox in ransack search
# model CLINIC has many TREATMENTS
<%= check_box_tag "q[treatments_id_eq_ALL][]", treatment.id, {} %>
= f.input :category_name_eq, :collection=>Estate::Category.all.map(&:name), :as=>:check_boxes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment