Class: Manage::CampaignWizardController

Inherits:
ApplicationController
  • Object
show all
Includes:
Wicked::Wizard
Defined in:
app/controllers/chaskiq/manage/campaign_wizard_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



28
29
30
31
# File 'app/controllers/chaskiq/manage/campaign_wizard_controller.rb', line 28

def create
  @campaign = Chaskiq::Campaign.create(resource_params)
  redirect_to manage_wizard_path(steps.first, :campaign_id => @campaign.id)
end

#designObject



18
19
20
21
# File 'app/controllers/chaskiq/manage/campaign_wizard_controller.rb', line 18

def design
  render_wizard
  render :show , layout: false
end

#showObject



14
15
16
# File 'app/controllers/chaskiq/manage/campaign_wizard_controller.rb', line 14

def show
  render_wizard
end

#updateObject



23
24
25
26
# File 'app/controllers/chaskiq/manage/campaign_wizard_controller.rb', line 23

def update
  @campaign.update_attributes(resource_params)
  render_wizard @campaign
end