osem-fcy/app/controllers/admin/supporter_levels_controller.rb

19 lines
604 B
Ruby
Raw Normal View History

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