Handling multiple models in a single form is easy with accepts_nested_attributes_for. Here you will also learn how to add and remove nested records through JavaScript.
This is a revised episode, see the original episode.
Subscribe to RailsCasts Pro to access this episode and other pro and revised episodes. Only $9 per month.