Displaying 1 result from an estimated 1 matches for "invites_attributes".
2011 Oct 26
6
Add an index to a form
...* gender
but one father may have more than 1 child and I''m adding another form
with ajax by following this
http://stackoverflow.com/questions/4812003/adding-fields-dynamically-in-a-nested-model-form-in-rails-3
in the "invite" partial
_invite.html.erb
<%= fields_for "user[invites_attributes][]", invite do |i| %>
<li>
<%= link_to("Remove", "#delete", :class => "delete-invite") %>
<%= i.label :full_name, "Full Name" %>
<%= i.text_field :full_name %>
<%= i.label :email, "Email Address&quo...