Displaying 1 result from an estimated 1 matches for "schools_count".
2006 Mar 08
0
How to add something similar to :counter_cache - :avg_cache
...e, the
"caches" would need to get updated whenever the counties table is
modified (apart from when the schools table is modified), because
there''s no direct relation between the schools and the states table.
And then I want that each county & state object have a method named
schools_count and schools_avg, which would retrieve their respective
column from the db.
This is *somewhat* over my head, but what the hell, I like challenges.
So could someone help me out?
Kind regards,
Ivan V.