You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to always return a result and instead use predicate methods to check for edge conditions. What do the predicate methods return?
past_step?(step)# does step come before the current request's step in wizard_stepsfuture_step?(step)# does step come after the current request's step in wizard_stepsprevious_step?(step)# is step immediately before the current request's stepnext_step?(step)
When on the first step of the wizard, I would have expected the previous_step to be nil. But it seems to default to the first step.
Is there a reason for that?
I realise I can monkey patch in a change here. But I was just trying to understand the design decision.
The same occurs for the previous/next_wizard_path view helpers.
The text was updated successfully, but these errors were encountered: