[LRUG] Updating activerecord associations without saving
Tim Cowlishaw
tim at timcowlishaw.co.uk
Thu Sep 23 06:49:21 PDT 2010
On 23 Sep 2010, at 14:47, Mr Jaba wrote:
> If you wish to assign an object to a has_one association without saving it,
>
> use the association.build method (documented below).
>
Ok, see - that's what I thought, but it's clearly doing something different for me! Occam's razor says I probably have a callback lying around that I hadn't thought about, that's being too eager about saving things. Will double check!
Thanks for the help!
Cheers,
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20100923/e7c00761/attachment-0003.html>
More information about the Chat
mailing list