Merge pull request #200 from gopesht/add_sponsorship_levels

Adds sponsorship levels
This commit is contained in:
James Mason 2014-06-12 11:02:35 -07:00
commit 411deb4c65
13 changed files with 159 additions and 10 deletions

View file

@ -0,0 +1,17 @@
module Admin
class SponsorshipLevelsController < ApplicationController
before_filter :verify_organizer
def update
if @conference.update_attributes(params[:conference])
redirect_to(admin_conference_sponsorship_levels_path(
conference_id: @conference.short_title),
notice: 'Sponsorship levels were successfully updated.')
else
redirect_to(admin_conference_sponsorship_levels_path(
conference_id: @conference.short_title),
alert: 'Sponsorship levels update failed')
end
end
end
end