Yes, but some of the parent object are new objects, so i have to go through, save those so that they have IDs, then run through and associate the children that already are saved, then run through nested_attributes. Ok, I will give it a short, and figure out what I come up with.
On Wednesday, March 1, 2017 at 8:48:07 PM UTC+2, Jeremy Evans wrote: > > On Wednesday, March 1, 2017 at 10:41:48 AM UTC-8, Aryk Grosz wrote: >> >> Thanks for the quick response! >> >> Ok, but then I have to collect and strip off all objects that are saved >> and are *not* associated with their original parent, go through and save >> everything and then using the association_pks to reassociate them, is that >> right? >> > > You could first change the associated objects (either via assocition_pks > or just using the add_* method directly), then you could use > nested_associations to edit all associated objects (including ones just > associated). > > Thanks, > Jeremy > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
