accepts_nested_attributes_for(*attr_names)
Instance Public methods
Defines an attributes writer for the specified association(s).
Supported options:
:allow_destroy
If true, destroys any members from the attributes hash with a
_destroy key and a value that evaluates to true
(eg. 1, '1', true, or 'true'). This option is off by
default.
:reject_if
Allows you to specify a Proc or a Symbol
pointing to a method that checks whether a record should be built for a
certain attribute has