Archive of posts from 05 April 2011

Rails 3 counter_cache with has_many :through

After an evening of getting knee deep in the Rails core debugging and issue with counter_cache on a has_many :through, it seems this [has been reported on lighthouse](https://rails.lighthouseapp.com/projects/8994/tickets/2824-patch-has_many-through-doesnt-update-counter_cache-on-join-model-correctly), and [a fix has been applied in edge](https://github.com/rails/rails/commit/52f09eac5b3d297021ef726e04ec19f6011cb302).