Displaying 1 result from an estimated 1 matches for "schools_tot".
Did you mean:
schools_total
2006 Mar 08
0
How to add something similar to :counter_cache - :avg_cache
...which aren''t directly related. For example:
Table ''schools'' has records that belong_to table ''counties'', and that
table has records that belong_to table ''states''.
In both states, and counties, there''s a column named ''schools_total''.
I don''t use Rails built in counter cache because schools don''t belong
directly to states.
So I want to implement two features. Inside counties:
counter_cache :schools
avg_cache :schools
Inside states:
counter_cache :schools, :through => counties
avg_cache :scho...