I have an AR model with a has_one association. AFAICT, using a straightforward logger that works everywhere else, callbacks on on the associated model never get called. I''ve put logger lines in the parent model and in the child model for before/after_update and before/after_validation_on_update. I get log lines for the parent, and none for the child. The child relationship is working--form params data is being saved to the child data table just fine, but none of the actions in any of the callbacks for the child are working. Is this normal?? -- gw --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jun 16, 2008, at 9:45 AM, Greg Willits wrote:> I have an AR model with a has_one association. > > AFAICT, using a straightforward logger that works everywhere else, > callbacks on on the associated model never get called. > ... > Is this normal??Hmm. Nevermind. I made a simple change in some controller code, and now callbacks work. Puzzling (considering the save was working), but apparently an app-level problem. -- gw --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---