Working on the backend interface for supporter registrations

This commit is contained in:
Matt Barringer 2013-02-03 18:12:44 +01:00
parent e0f134bb34
commit 152e8a345d
66 changed files with 12860 additions and 17 deletions

View file

@ -0,0 +1,19 @@
class Admin::SupportersController < ApplicationController
before_filter :verify_organizer
layout "admin"
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
supporter = SupporterRegistration.create!(params[:supporter_registration])
flash[:notice] = "Supporter added"
render :json => {"status" => "ok"}
end
end