> I am using single table inheritance which looks something like this:
>
> class Employee < ActiveRecord::Base
> belongs_to :employee_type
> end
> Manager < Employee
> Programmer < Employee
>
> When I call Manager.find(...) or Programmer.find(...) regardless of
> what parameters are passed to find I only want that employee type to
> be returned. So Prgrammers.find(:all) will return all programmers, but
> not managers.
Google [rails polymorphic association]!
--
Phlip