.record-attribute.nested-association - if f.object.persisted? = f.hidden_field :id = f.hidden_field :_destroy, :value => 0 .field = f.send local_assigns[:value_field_type] || :text_field, :value = yield = link_to_destroy_record_attribute