Refinery CMS (Rails): Creating a plugin or plugins with multiple models and relationships
Posted
by jklina
on Stack Overflow
See other posts from Stack Overflow
or by jklina
Published on 2010-05-13T19:11:42Z
Indexed on
2010/05/13
19:14 UTC
Read the original article
Hit count: 813
My goal is to create a way for an admin to create two models in the Refinery admin: Campaigns and Videos
I would like to have it setup so that a Campaign has many Videos and that each Video belongs to a Campaign. Both Videos and Campaigns will have a title, description, and a preview image. I'm not certain of the best way to go about this. Is it possible to setup two plugins and form a relationship between the two? Or, should I create one plugin with both models. If someone could point me in the right direction or a good example of a solution to a similar problem, I would be grateful.
Thank you for looking!
© Stack Overflow or respective owner