From: Adam42Smith@... Date: 2007-05-15T03:10:07+09:00 Subject: Re: Rails: Counter problem Actually, my real application is a bit more complicated and it does have the 'belongs_to :forum, :counter_cache => true ' in Topic class. Nevertheless the problem still exist because my main page should look like this: Forum1 NumOfTopicsinForum1 NumOfRepliesInForum1 Forum2 NumOfTopicsinForum2 NumOfRepliesInForum2 .... With Your solution I can print out the NumOfTopicsinForum without an additional SQL query, but i can not print the NumOfRepliesInForum (as I don't have posts_count field in Forum class) and there are some other minor reasons for having posts in the Forum class. Additionally my real Post class belongs to 3 other classes so even if your solution was ok the problem with wacky counters remains. Basically, I have a feeling that the solution to my problem is simple and I'm just missing something obvious :-)