Reputation: 195
I'm trying to make a specific flow of actions in my application and I'm at a point where I want a user to fill out three separate forms with different information on them (they all are part of the Questionnaire model kinda), then I want it to display different information on their dashboard once all three are filled out. I thought of a couple solutions, but I'm not sure which is best:
@questionnaire.name && @questionnaire.title
) Is there an easier way to do what I'm thinking of?
Upvotes: 1
Views: 288
Reputation: 2364
You can build a three screens "wizard" to guide the user. Serialize the information between screens and at the end save all the info into the Model:
http://api.rubyonrails.org/classes/ActiveModel/Serialization.html
Maybe wicked can be useful:
https://github.com/schneems/wicked
Upvotes: 1