osem-fcy/app/controllers/admin/sponsorship_levels_controller.rb
2014-05-26 15:43:19 +05:30

19 lines
622 B
Ruby

class Admin::SponsorshipLevelsController < ApplicationController
before_filter :verify_organizer
def show
render :sponsorship_levels
end
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