editing multiple objects from same model

go to railcasts.com and find complex form. There are 3 episodes.

If you want to add arbitrary number of addresses, I think you will need an Addresses model.