Sha256: 6ea723a1f72b09df595dfaff2d04a939d738222c033d03c3effde08d2c7cb8f7

Contents?: true

Size: 428 Bytes

Versions: 15

Compression:

Stored size: 428 Bytes

Contents

## This controller uses includes

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

  def show
    skip_step if params[:skip_step]
    jump_to :last_step if params[:jump_to]
    if params[:resource]
      value = params[:resource][:save] == 'true'
      @bar  = Bar.new(value)
      render_wizard(@bar)
    else
      render_wizard
    end
  end

  def update
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wicked-1.0.3 test/dummy/app/controllers/jump_controller.rb
wicked-1.0.2 test/dummy/app/controllers/jump_controller.rb
wicked-1.0.1 test/dummy/app/controllers/jump_controller.rb
wicked-1.0.0 test/dummy/app/controllers/jump_controller.rb
wicked-0.6.1 test/dummy/app/controllers/jump_controller.rb
wicked-0.6.0 test/dummy/app/controllers/jump_controller.rb
wicked-0.5.0 test/dummy/app/controllers/jump_controller.rb
wicked-0.4.0 test/dummy/app/controllers/jump_controller.rb
wicked-0.3.4 test/dummy/app/controllers/jump_controller.rb
wicked-0.3.3 test/dummy/app/controllers/jump_controller.rb
wicked-0.3.2 test/dummy/app/controllers/jump_controller.rb
wicked-0.3.1 test/dummy/app/controllers/jump_controller.rb
wicked-0.3.0 test/dummy/app/controllers/jump_controller.rb
wicked-0.2.0 test/dummy/app/controllers/jump_controller.rb
wicked-0.1.6 test/dummy/app/controllers/jump_controller.rb