During the update action of a nested form, instead of updating the current nested records, it seems to create new nested records.
This is what my controller looks like
Try adding update_only to your call to accepts_nested_attributes_for.
update_only
accepts_nested_attributes_for
accepts_nested_attributes_for :nested_attribute, update_only: true