class Category has_many :clips end class Clip belongs_to :category, :counter_cache = > true named_scope :converted, :conditions => {:converted => true} end 1. How to update counters if clip changes its category_id ? 2. How to implement custom counters by conditions, e.g: category.clips_count category.converted_clips_count --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---