Top "Counter-cache" questions

What is covered by save(:validate => false)?

I just implemented a number of custom counter_caches using code like this: def after_save self.update_counter_cache …

ruby-on-rails ruby-on-rails-3 counter-cache
How to implement a Counter Cache in Rails?

I have a posts controller and a comments controller. Post has many comments, and comments belong to Post. The associate …

ruby-on-rails one-to-many counter-cache
Problem with counter_cache implementation

I'm getting 'rake aborted! ... posts_count is marked readonly' errors. I have two models: user and post. users has_many …

ruby-on-rails counter-cache