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?

Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top