but each time that new fields are added to my form the fields are
added above my table. Therefore, when the remove links are clicked,
it can’t find the section to delete. What am I doing wrong?
in the view:
<% echantillon_form.fields_for :treatments do |builder| %>
<%= render "treatment_fields", :f => builder %>
<% end %>
<%= link_to_add_fields "Add treatment",
while firebug says that the fields are actually outside of the
tags. Why would that be?
I think you have invalid html. I highly recommend installing the html
validator add-in for firefox as it checks my html as I develop the
app, making sure I do not make such errors. Also you can paste your
html into the w3c htlm validator (find with google if necessary) to
check it.