I use the following code to display a selection tree for the category tree:
grouped_collection_select(:categories, :category_id, Category.top_level, :children, :name, :id, :name, :include_blank => true)
How can I change it to allow multiple selection?
Also, is it possible to display checkboxes instead of a select box?
to try
grouped_collection_select(:categories, :category_id, Category.top_level, :children, :name, :id, :name, {:include_blank => true}, { :multiple => true }
Maybe with
grouped_collection_select(:categories, :category_id, Category.top_level, :children, :name, :id, :name, :include_blank => true, { :multiple => true }
not tested!