I want to have a Person class It will has attributes like name,email,address, phone... Then I will like some subclasses like Student, Teacher, Doctor, Lawyer, JobSeeker... these models will have attributes that belong to related fields. As a person may be a teacher and a lawyer at the same time, a Person class will be allowed to has more than one subclasses. I have checked out Polymorphic Associations, it is done like this: class Person < ActiveRecord::Base belongs_to :titled_person :polymorphic => true end class Doctor < ActiveRecord::Base has_one :person, :as => titled_person end class Lawyer < ActiveRecord::Base has_one :person, :as => titled_person end ... but It deal with a class with ONE subclass, and the words(has, belongs to) totally mess up my idea. can any one to help me to do it right? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---