id like to make a multistep form with rails using the edit and update actions. so i would like it to be like step 1 of the form, and the user fills in his name, address, and phone number. then the user clicks save and continue and he then fills out his shipping address and then clicks save and continue and fills out his billing address. i saw ryan bates version, but its not what im looking for. i would like the order to be saved after the first step so if the user doesnt finish their form, i can call them and ask them what went wrong. can anyone refer me to a tutorial or give me an example of how to make an order form using the edit and update methods?
id like to make a multistep form with rails using the edit and update
Share
Typically this means you’ll need to put conditions on your model validations. Some subset of your validations should apply to each form page:
It’s not pretty but I highly recommend a pattern like this. Anything more complicated and you’ll need to rewrite it when your signup flow changes.