1
0
Fork 0
discourse-custom-wizard-unl.../controllers/wizard.rb
Angus McLeod 897cc0b60e various
2017-10-15 11:58:22 +08:00

16 Zeilen
454 B
Ruby

class CustomWizard::WizardController < ::ApplicationController
def set_layout
File.expand_path('../../views/layouts/custom_wizard.html.erb', __FILE__)
end
def index
puts "USING PROPER CONTROLLER"
respond_to do |format|
format.json do
wizard = CustomWizard::Builder.new(current_user, params[:wizard_id].underscore).build
render_serialized(wizard, WizardSerializer)
end
format.html {}
end
end
end