Sha256: 03e1a0a308fda505fec351325e8b085e5d6b5857ef6db96c2ea3cc3a2a133cbd

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

class RedirectToNextController < ApplicationController
  include Wicked::Wizard
  steps :first, :second, :last_step

  def show
    if params[:jump_to]
      if params[:jump_to] == 'finish_wizard'
        redirect_to_finish_wizard :notice => params[:notice]
      else
        redirect_to_next params[:jump_to], :notice => params[:notice]
      end
    else
      render_wizard
    end
  end

  def update
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wicked-1.0.3 test/dummy/app/controllers/redirect_to_next_controller.rb
wicked-1.0.2 test/dummy/app/controllers/redirect_to_next_controller.rb
wicked-1.0.1 test/dummy/app/controllers/redirect_to_next_controller.rb
wicked-1.0.0 test/dummy/app/controllers/redirect_to_next_controller.rb