I have a Presentation Model which I create in the usual way through a form.
The Presentation Model has two nested resources: a Recording Model and a SlideDeck Model:
class Presentation < ActiveRecord::Base
has_one :recording
has_one :slide_deck
end
I have a Flash component that allows a user to record a Presentation and add slides through its duration. Once a user has finished creating and editing the Presentation they click save.
At this point I need to create the Recording and the SlideDeck as nested resources on the Presentation. This means creating two Models from a single form.
My question is where should this page sit? If the component was creating just the Recording, the page would be rendered from a new action on the recording_controller and if it was creating just the SlideDeck, the page would be rendered from a new slide_deck_controller. However in this case I am creating both at the same time.
So where should the component live? Should it be rendered by an action on the presentation_controller; another edit action? In one sense this page allows editing of the Presentation through creating its nested resources.