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
-
#index ⇒ Object
forward to first step with whatever params are provided.
-
#wizard_value(step_name) ⇒ Object
returns the canonical value for a step name, needed for translation support.
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, #previous_wizard_path, #wicked_action, #wicked_controller, #wizard_path
Instance Method Details
#index ⇒ Object
forward to first step with whatever params are provided
35 36 37 |
# File 'lib/wicked/wizard.rb', line 35 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
40 41 42 |
# File 'lib/wicked/wizard.rb', line 40 def wizard_value(step_name) step_name end |