I have 2 models I have a father and another son, I can create the child form without problems within the father.
<h3>Agregar Programa</h3>
<%= link_to_add_association 'Agregar', f, :lists,
'data-association-insertion-node' => "#lists ol",
'data-association-insertion-method' => "append",
:wrap_object => Proc.new {|list| list}, class: 'btn btn-primary' %>
<hr/>
<fieldset id="lists">
<ol>
<%= f.fields_for :lists do |list| %>
<%= render partial: "list_fields", locals: { f: list} %>
<% end %>
</ol>
</fieldset>
but now, how can I make the% of the parent's% share what was entered in the child?
I do not know if I explain.