I’m still learning rails and would like to know the best way to proceed.
I have a wizard interface where I’d like to allow the user to create an
Event, along with several children models, some of which are children
via has-many through relationships.
I’ve started by creating partials under Event (step1,step2,step3) etc.
each with their own form. I’ve using all remote=>true ajax calls and
hiding/showing the different step partials after each submission. I’m
leveraging accepts nested attributes to do everything through the Event.
Is this the best approach?
Should I instead have a initial form to create the base Event model
(step 1). Then take them to a different controller to create one of the
child objects? If so should it be a view on the junction object? (ex.
event location is a junction between event and locations)
Hopefully this made sense, I’m just looking for some direction and
advice.