+1 for counter_culture. This really should be how Rails works by default. In my experience the need to have multiple counter cache columns (goals, completed goals - books, books read) is the norm rather than the exception and this gem allows that and much more.
+1 for counter_culture. This really should be how Rails works by default. In my experience the need to have multiple counter cache columns (goals, completed goals - books, books read) is the norm rather than the exception and this gem allows that and much more.
Thank you for this! I was getting very frustrated with not being able to get even the example to work correctly and this solved my problem.