Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Duplicates created when using accepts_nested_attributes_for #3

Open
Whitespace opened this issue Jan 27, 2010 · 4 comments
Open

Duplicates created when using accepts_nested_attributes_for #3

Whitespace opened this issue Jan 27, 2010 · 4 comments

Comments

@Whitespace
Copy link

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.

@brandonbloom
Copy link

Did you ever find a workaround for this issue?

@Whitespace
Copy link
Author

Nope, although I didn't look hard.

@brandonbloom
Copy link

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

@robotex82
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants