2013-02-02 16:43:47 +01:00
|
|
|
class Admin::SupporterLevelsController < ApplicationController
|
|
|
|
|
before_filter :verify_organizer
|
|
|
|
|
|
|
|
|
|
def show
|
|
|
|
|
render :supporter_levels
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def update
|
|
|
|
|
begin
|
|
|
|
|
@conference.update_attributes!(params[:conference])
|
2014-07-21 14:49:05 +02:00
|
|
|
redirect_to(admin_conference_supporter_levels_path(conference_id: @conference.short_title), notice: 'Supporter levels were successfully updated.')
|
2014-07-21 14:37:26 +02:00
|
|
|
rescue => e
|
2014-07-21 14:49:05 +02:00
|
|
|
redirect_to(admin_conference_supporter_levels_path(conference_id: @conference.short_title), alert: "Supporter levels update failed: #{e.message}")
|
2013-02-02 16:43:47 +01:00
|
|
|
end
|
|
|
|
|
end
|
2014-06-30 17:07:53 +02:00
|
|
|
end
|