For example, we have Paper and EvidenceItem models. We want to let the user add/remove/edit EvidenceItems while they are adding or editing Paper records.
The Paper model looks like this:
class Paper < ApplicationRecord
has_many :evidence_items, dependent: :destroy