0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00
discourse-custom-wizard/controllers/wizard.rb

17 Zeilen
454 B
Ruby

2017-09-25 16:47:40 +02:00
class CustomWizard::WizardController < ::ApplicationController
def set_layout
File.expand_path('../../views/layouts/custom_wizard.html.erb', __FILE__)
end
def index
2017-10-15 05:58:22 +02:00
puts "USING PROPER CONTROLLER"
2017-09-23 04:34:07 +02:00
respond_to do |format|
format.json do
2017-10-07 04:27:38 +02:00
wizard = CustomWizard::Builder.new(current_user, params[:wizard_id].underscore).build
2017-09-23 04:34:07 +02:00
render_serialized(wizard, WizardSerializer)
end
format.html {}
end
end
end