Use a nested dynamic form with a has_many :through association in Rails.
We're going to learn when and how to use the has_many through association. Then we're going to create an application with dynamic nested attributes.