Refinery CMS (Rails): Creating a plugin or plugins with multiple models and relationships
- by jklina
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!