search for: chapters_attributes

Displaying 1 result from an estimated 1 matches for "chapters_attributes".

2012 Feb 22
0
ActiveResource wrong constant name 0
The fields_for tag, when working with ActiveResource''s accepts_nested_attributes_for returns the params like this: "book"=>{"name"=>"sdfas", "chapters_attributes"=>{"0"=>{"name"=>"sdfaasdf"}}} Note thé "0" as a key to the "chapters_attributes" hash. When working with ActiveResource it gives me this ''wrong constant name 0'' because it tries to ''find or create'...