title: Ruby on Rails polymorphic association
body: <p>Here's what I'm trying to achieve: I have a Users table and each user can be any of a dozen of types: actor, dancer, director,...which is determined after signing up. Each type of user can have any number of profiles. Eg. actors can have any number of actor_profiles, dancers cand have any number of dancer_profiles,...</p>
  
  <p>The problem is how do I link the profile with the user. An obvious solution would be to create an aditional table for each profile type, so that I could use a polymorphic belongs_to in User and then a simple belongs_to in each profile, but that seems less than optimum. An arguably better way would be to tell rails that user it's of type actor, so that user.profiles would work naturally, without any clutter. Does rails support such behaviour, or is there anything better than the former method? Thanks.</p>