customer = Customer.new
customer.contatcs.build(name: '1')
customer.contatcs.build(name: '2')
customer.contatcs.build(name: '3')
customer.contatcs.build(name: '4')
If you want to erase the one with name 2
target = customer.contatcs.second
customer.contatcs.destroy(target)
Then you can erase it.
Recommended Posts