13 May '12, 9am

@freshtonic @mattallen @julio_ody @anathematic should't it be: {"member":{"name":"Jack","avatar":{"icon":"smiling"}}}

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 hash. The hash is passed to the supplied Proc or the method and it should return either true or false . When no :reject_if is specified, a record will be built for all attribute hashes that do not have a _destroy value that evaluates to true. Passing :all_blank instead of a Proc will create a proc that will reject a record where all the attributes are blank excluding any value for _destroy. :limit Allows you to specify the maximum number of the associated records that can be processed with the nested attributes. If the size of the nested attributes array exceeds th...

Full article: http://api.rubyonrails.org/classes/ActiveRecord/NestedAtt...

Tweets