Hello, I'm writing a Rails application that will track people's interests. I'd like to keep detailed information about each type of interest so I can't just put everything in the interest table (the table would be just too wide)
User has_many :interests Interest belongs_to :user has_many :sports has_many :books has_many :tv_shows etc., etc. I was thinking that interest would have a type property that tells you which one of the relationships will have the data. I know about single table inheritances and polymorphic relationships but can't figure out how to apply them to come up with an elegant solution. Thanks, GP -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

