I have a model MyModel with a serialized attribute a, describing an array of symbols.
This code works :
<% form_for @my_
if you already have a select_tag
<%= select_tag "filters", options_from_collection_for_select(filter_values, "id", "name", selected_ids), multiple:true, class:"form-control" %>
and wants to replace it with check_box_tag, you will need to implement something like this:
<%= check_box_tag "filters[]", value.id, selected_ids.include?(value.id), { :multiple => true} %>
<%= value.name %>
notice the ending brackets on the name which is needed to catch check box results in the same parameter.
When I implemented this, the parameters were of the same format between the select_tag and the check_box_tag