Rails 3 2 counter cache not updating

Counting associations represents a performance improvement by avoiding eager loading and N 1 queries for listings -- e.g.

the index page for Posts that shows how many Comments each Post has.

' ! = '

Search for rails 3 2 counter cache not updating:

rails 3 2 counter cache not updating-70rails 3 2 counter cache not updating-81rails 3 2 counter cache not updating-44

| 0 (2 rows) id | post_id | body ---- --------- ----------- 2 | 1 | Comment 2 3 | 1 | Comment 3 (2 rows) SELECT * FROM posts; id | title | body | comments_count ---- ---------------- ----------------- ---------------- 1 | My first post!

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “rails 3 2 counter cache not updating”

  1. So I want you to know that I am putting this out there to help and inspire everyone to have more dating success, to point fingers. ” and pretty much any sentence that begins with ‘why didn’t you,’ it’s like nails on a chalkboard.