Hi

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
froglet.name %><br />
<% 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.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to