문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top