I know you can:
accepts_nested_attributes_for :foo, :reject_if => proc { |a| a[:bar].blank? }
Is there a way instead to say something like
accepts_nested_attributes_for :foo, :reject_if => blah[:bar].blank? and flah[:bar].blank?
or
accepts_nested_attributes_for :foo, :reject_if => all fields except record_date.blank?
thank
source
share