Displaying 1 result from an estimated 1 matches for "profiles_count".
Did you mean:
profilecount
2006 Apr 12
0
counter_cache and updates
I''m trying to figure out how to use counter_cache.
I''ve got Clients that have many Profiles. And I got things working so that
when I add a new Profile, the profiles_count gets updated.
profile = client.profiles.new(params[:profile])
profile.save
However, I''m stuck trying to figure out how to deal with UPDATING a profile
(moving it to a different Client). If I change the profile to a new client,
I can get the right profiles_count on the NEW client, but th...