I cannot understand the following behavior
<% filter.each do |f| %>
<% aux = @taxon_ids %>
<%= check_box_tag "filter_taxon", aux << f[:id], @taxon_ids.include?(f[:id]) %>
...
<% end %>
for each loop of my function the aux
var is not re-initializing. Indeed there is accumulating each id in him self.