Question

I'm using the following code to display a tree view selection box of categories:

grouped_collection_select(:logic, :logic_id, Logic.top_level, :child, :name, :id, :name, :include_blank => true)

How can I change it to allow multiple selection?

Also, is it possible to have it display checkboxes instead of a select box?

Was it helpful?

Solution

For displaying checkbox in select box jquery multiselect i haven't tried with grouped_collection_select but use select/select_tag with option_groups_from_collection_for_select it is more flexible.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top