# AR Callbacks not called

**URL:** <https://www.ruby-forum.com/t/ar-callbacks-not-called/140603>\
**Category:** Rails\
**Created:** [June 16, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/ar-callbacks-not-called/140603 "2008-06-16T18:47:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![S-gw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Post date:** [June 16, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/ar-callbacks-not-called/140603/1 "2008-06-16T18:47:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![S-gw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Post date:** [June 16, 2008, 7:18pm UTC](https://www.ruby-forum.com/t/ar-callbacks-not-called/140603/2 "2008-06-16T19:18:16Z")

</div>

On Jun 16, 2008, at 9:45 AM, Greg W. 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
