I am using something like the following code to show an array of
checkboxes within a form
<% @froglets.each do |froglet| -%>
<%= check_box_tag “note[froglet_ids]”, froglet.id %> <%= h
<% end %>
These get submitted as an array and all works well, except for the
fact that firebug gives me warnings on the page (anchor
note_froglet_ids_ is already defined) as all the checkboxes have the
same name attribute.
Is there an alternative method of achieving display and submit of an
array of checkboxes that generates fully valid html? Using rails
2.3.2. I can update rails if it will help.