Method: Effective::WizardController::Actions#new
- Defined in:
- app/controllers/concerns/effective/wizard_controller/actions.rb
#new ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/concerns/effective/wizard_controller/actions.rb', line 5 def new Rails.logger.info 'Processed by Effective::WizardController#new' self.resource ||= (find_wizard_resource || resource_scope.new) EffectiveResources.(self, :new, resource) redirect_to resource_wizard_path( (resource.to_param || :new), (resource.first_uncompleted_step || resource_wizard_steps.first) ) end |