Hello out there,
let’s assume, I’ve got an article model. An article always has an
author and refers to it. But I’ve got several types of authors which
all have theier own models. So a simple foreign key rather belongs_to
will not help me. So, I could save the author_id and a kind of
authot_type to manually create the association. Is there a more
comfortable way in rails?
Thank you very much!