When the render_wizard method is called with a resource it saves it, and then either redirects to the next step or re-renders the current step in case of errors.
Looking at the code, it is impossible to perform actions based on the result of the save. One such example is flash messages, but this can be worked around using the options argument of render_wizard.
Another example that is impossible to solve at the moment is business logic after saving the resource.
At this point I don't know if this is a feature request or a question on how to solve this problem, but I would be surprised if I am the first person to bring this up. Is there a known solution or workaround to this problem?
When the
render_wizardmethod is called with a resource it saves it, and then either redirects to the next step or re-renders the current step in case of errors.Looking at the code, it is impossible to perform actions based on the result of the save. One such example is flash messages, but this can be worked around using the
optionsargument ofrender_wizard.Another example that is impossible to solve at the moment is business logic after saving the resource.
At this point I don't know if this is a feature request or a question on how to solve this problem, but I would be surprised if I am the first person to bring this up. Is there a known solution or workaround to this problem?