Module: Wicked::Wizard

Extended by:
ActiveSupport::Concern
Includes:
Controller::Concerns::Path, Controller::Concerns::RenderRedirect, Controller::Concerns::Steps
Included in:
Translated, WizardController
Defined in:
lib/wicked.rb,
lib/wicked/wizard.rb,
lib/wicked/wizard/translated.rb

Defined Under Namespace

Modules: Translated Classes: InvalidStepError, UndefinedStepsError

Constant Summary

Constants included from Controller::Concerns::Steps

Controller::Concerns::Steps::PROTECTED_STEPS

Instance Method Summary collapse

Methods included from Controller::Concerns::Steps

#current_step?, #future_step?, #jump_to, #next_step, #next_step?, #past_step?, #previous_step, #previous_step?, #skip_step, #step, #steps, #steps=

Methods included from Controller::Concerns::RenderRedirect

#finish_wizard_path, #process_resource!, #redirect_to_finish_wizard, #redirect_to_next, #render_step, #render_wizard

Methods included from Controller::Concerns::Path

#next_wizard_path, #next_wizard_url, #previous_wizard_path, #previous_wizard_url, #wicked_action, #wicked_controller, #wizard_path, #wizard_url

Instance Method Details

#indexObject

forward to first step with whatever params are provided



38
39
40
# File 'lib/wicked/wizard.rb', line 38

def index
  redirect_to wizard_path(steps.first, request.query_parameters)
end

#wizard_value(step_name) ⇒ Object

returns the canonical value for a step name, needed for translation support



43
44
45
# File 'lib/wicked/wizard.rb', line 43

def wizard_value(step_name)
  step_name
end