Rails, searchlogic choose categories with checkboxes
- by atmorell
Hello,
I am useing searchlogic to search some paintings. Each painting belong to a single category. What I would like to do is add multiple checkboxes to my search form, so that users can mark multiple categories. (joined with or) Is this possible with searchlogic? The query I am looking for is something like this:
SELECT * FROM paintings WHERE category LIKE "white" OR category LIKE "red"...
f.check_box :category (white)
f.check_box :category (black)
f.check_box :category (red)
f.check_box :category (green)
etc.