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.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to