On Friday, May 2, 2014 8:04:31 AM UTC-7, Jef Harkay wrote: > > Hi Jeremy, thanks for the reply. That's what I want to do though... I > want to create/update my associations whenever I do something to Book or > Author... I need to update the author_book table. So if I add an Author > with associated Books, insert these associations into the author_book > table. I don't actually want to modify a particular Book or Author's pk in > its table--I just want to make sure my join table reflects which authors > are associated to which books, and vice versa. >
You want the association_pks plugin then. You only want to change which objects are associated, you don't want to actually edit the attributes of the associated objects, so you don't want to use nested_attributes. 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 http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
