So this is probably a pretty simple question to answer, but it doesn't matter here.
I want to have this view, for example media_objects /, which shows a list of media objects. Easy, right? However, I want the list of media objects to be a collection of objects that are subtypes of MediaObject, CDMediaObject, DVDMediaObject, for example. Each of these subtypes must be represented by a db table for a specific set of metadata that is not completely common to all subtypes.
My first pass on this was to create a model for each of the subtypes, modify MediaObject to be smart enough to join these tables in conceptual “all” behavior. It seems simple enough, but I end up doing a lot of little things that are not so rails-o-rific, so I wanted to ask for advice here.
I don’t have specific code yet for this example, but if you have any questions, I will gladly edit this question to provide this information ...
thank!
source
share