Closed lironbeni closed 8 years ago
It's a bit strange. It's duping a has_many
association, but it fails when it tries to set its reverse association. The reverse association found is called samples
, but it passes an instance of Project
to it. The reverse association should have been something like belongs_to :project
, but it found samples
instead.
I need to know what those associations look like in your code before I can tell you more.
Closing this because of lack of information & repro.
Hi, I'm trying to deep clone my project, it has elements, and folders with experiments and elements also, all has belongs_to and has_many relationships. my code is this:
the error I'm getting is this:
and the full (relavent)trace is this:
What am I missing? Or doing wrong? Please help....