2013-02-03 18:12:44 +01:00
|
|
|
class Admin::SupportersController < ApplicationController
|
|
|
|
|
before_filter :verify_organizer
|
|
|
|
|
|
|
|
|
|
def index
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.html
|
|
|
|
|
format.json { render json: DatatableSupporters.new(@conference.supporter_registrations, view_context) }
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def create
|
|
|
|
|
params[:supporter_registration][:conference_id] = @conference.id
|
2014-07-21 14:42:58 +02:00
|
|
|
SupporterRegistration.create!(params[:supporter_registration])
|
2014-03-28 00:11:08 +05:30
|
|
|
redirect_to(admin_conference_supporters_path(:conference_id => @conference.short_title), :notice => "Supporter added")
|
2013-02-03 18:12:44 +01:00
|
|
|
end
|
|
|
|
|
end
|