has_many :$Modelo$,, dependent: :destroy accepts_nested_attributes_for :$Modelo$, allow_destroy: true, reject_if: proc { |att| att['$Campo$'].blank? }