acts_as_list
acts_as_list copied to clipboard
Duplicates created when using accepts_nested_attributes_for
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
.
Did you ever find a workaround for this issue?
Nope, although I didn't look hard.
I stopped seeing this issue when I fixed an unrelated bug with my validation code. Not sure the details, was already 4 days ago.
I'm having the same problem. Has this been solved?