I have two emails for a contact. The first email is primary.While saving a new contact I can only set one radio button for primary, but in edit page the primary radio button can be set for both emails(not mutually exclusive) View <tr> <% for email in @contact.emails %> <% fields_for "contact[email_attributes][]", email do |e| %> <td nowrap class="formLabel">Email </td> <td > <%= e.select (''email_type'',%w{Business Personal}, :include_blank => false) %> <%= e.text_field :email,:size=>"35",:maxlength=>"80" %> <%= e.radio_button (''isprimary'', ''true'') %>Primary </td> </tr> <% end %> <% end %> </table> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---