I am struggling with this as well.
What appears to be happening is that the deletes from the join table do
not fire the counter_cache update.
From what I have read, delete's do not fire events and that is the way
it is designed in Rails 4.
I have tried multiple workarounds from doing an after_save event,
putting the join table in it's own model, etc... Nothing I have done
seems to decrement the count.
Anxious to see if any Ruby experts see this post and let us know the
best way to fix this.
John
--
Posted via
http://www.ruby-forum.com/.