Sha256: 17bda80dc6549981f4e2cf58e344d9aed511dc4d5fc0132314da5c06cc91647e

Contents?: true

Size: 400 Bytes

Versions: 9

Compression:

Stored size: 400 Bytes

Contents

class UpdatesController < ApplicationController
  include Wicked::Wizard

  class Thing
    def save
      true
    end
  end

  steps :first, :second, :last_step

  def index

  end

  def show
    render_wizard
  end

  def update
    @thing = Thing.new
    render_wizard(@thing, notice: "Thing was updated from step #{step}.")
  end

  private

  def finish_wizard_path
    updates_path
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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