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-cacheI 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-cacheI'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