Sha256: e34e8b0069059311bdb03d3e8a3a486a5e9c215a70473d3a20ab6e83e645a8d9

Contents?: true

Size: 417 Bytes

Versions: 10

Compression:

Stored size: 417 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

10 entries across 10 versions & 1 rubygems

Version Path
wicked-2.0.0 test/dummy/app/controllers/redirect_to_next_controller.rb
wicked-1.4.0 test/dummy/app/controllers/redirect_to_next_controller.rb
wicked-1.3.4 test/dummy/app/controllers/redirect_to_next_controller.rb
wicked-1.3.3 test/dummy/app/controllers/redirect_to_next_controller.rb
wicked-1.3.2 test/dummy/app/controllers/redirect_to_next_controller.rb
wicked-1.3.1 test/dummy/app/controllers/redirect_to_next_controller.rb
wicked-1.3.0 test/dummy/app/controllers/redirect_to_next_controller.rb
wicked-1.2.1 test/dummy/app/controllers/redirect_to_next_controller.rb
wicked-1.1.1 test/dummy/app/controllers/redirect_to_next_controller.rb
wicked-1.1.0 test/dummy/app/controllers/redirect_to_next_controller.rb