Forum: Ruby on Rails counter_cache not updating

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
=?UTF-8?Q?J=C3=A9r=C3=B4me_L?= (Guest)
on 2005-12-15 01:21
(Received via mailing list)

I'm using those 2 models:

class Topic < ActiveRecord::Base
   has_many :articles, :order => :rank

class Article < ActiveRecord::Base
   belongs_to :topic, :counter_cache => true

The "counter_cache" column in the "topics" table does increase when
adding a new article, but it does not update when updating article's
topic or when deleting the article.

Any idea ?
This topic is locked and can not be replied to.