TODO redirect to resource if one is passed to render_wizard
# File lib/wicked/controller/concerns/render_redirect.rb, line 42 def finish_wizard_path '/' end
# File lib/wicked/controller/concerns/render_redirect.rb, line 15 def process_resource!(resource) if resource if resource.save @skip_to ||= @next_step else @skip_to = nil end end end
# File lib/wicked/controller/concerns/render_redirect.rb, line 46 def redirect_to_finish_wizard(options = {}) Rails.logger.debug("Wizard has finished, redirecting to finish_wizard_path: #{finish_wizard_path.inspect}") redirect_to finish_wizard_path, options end
# File lib/wicked/controller/concerns/render_redirect.rb, line 33 def redirect_to_next(next_step, options = {}) if next_step.nil? redirect_to_finish_wizard(options) else redirect_to wizard_path(next_step), options end end
# File lib/wicked/controller/concerns/render_redirect.rb, line 25 def render_step(the_step, options = {}) if the_step.nil? || the_step.to_s == Wicked::FINISH_STEP redirect_to_finish_wizard options else render the_step, options end end
# File lib/wicked/controller/concerns/render_redirect.rb, line 5 def render_wizard(resource = nil, options = {}) process_resource!(resource) if @skip_to redirect_to wizard_path(@skip_to, @wicked_redirect_params || {}), options else render_step wizard_value(step), options end end
Generated with the Darkfish Rdoc Generator 2.