acts_as_list icon indicating copy to clipboard operation
acts_as_list copied to clipboard

Duplicates created when using accepts_nested_attributes_for

Open Whitespace opened this issue 15 years ago • 4 comments

Duplicates are created if the child_attributes hash is set. Note that this occurs without even saving the model. Using the example in the README, if you include accepts_nested_attributes_for :todo_items and in a console wrote todo_list.todo_items_attributes = {"1" => { "position" => "1" } } you'd see the duplicate with todo_list.todo_items.

Whitespace avatar Jan 27 '10 02:01 Whitespace

Did you ever find a workaround for this issue?

brandonbloom avatar Oct 19 '10 21:10 brandonbloom

Nope, although I didn't look hard.

Whitespace avatar Oct 24 '10 20:10 Whitespace

I stopped seeing this issue when I fixed an unrelated bug with my validation code. Not sure the details, was already 4 days ago.

brandonbloom avatar Oct 24 '10 20:10 brandonbloom

I'm having the same problem. Has this been solved?

robotex82 avatar Mar 04 '12 05:03 robotex82