You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using in my model accepts_nested_attributes_for. For specific scenerio only, when I try to add attachment_ids in first item and also I remove second item I receive mongo error.
[40]: Updating the path 'section9.significant_events.0.attachment_ids' would create a conflict at 'section9.significant_events' (on localhost:27017, legacy retry, attempt 1)
What is important attachment_ids in the first one must be new ones, If it's already persisted no error. So it looks like it tries to pass those attachment ids to the second item which is about to be deleted ? Dunno.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using in my model accepts_nested_attributes_for. For specific scenerio only, when I try to add attachment_ids in first item and also I remove second item I receive mongo error.
[40]: Updating the path 'section9.significant_events.0.attachment_ids' would create a conflict at 'section9.significant_events' (on localhost:27017, legacy retry, attempt 1)
What is important attachment_ids in the first one must be new ones, If it's already persisted no error. So it looks like it tries to pass those attachment ids to the second item which is about to be deleted ? Dunno.
Here are the params passed to controller:
and the relations are:
Beta Was this translation helpful? Give feedback.
All reactions