Re: activerecord and counting

Jeremy Weiskotten
2008-01-11T20:40:25Z

Here''s one way to do it:

   Part.count :conditions => [''product_id in (select id from
products
where company_id = ?)'', company_id]