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

18 lines
570 B
Ruby
Raw Normal View History

module Admin
class SponsorsController < ApplicationController
before_filter :verify_organizer
def update
if @conference.update_attributes(params[:conference])
redirect_to(admin_conference_sponsors_path(
conference_id: @conference.short_title),
notice: 'Sponsorships were successfully updated.')
else
redirect_to(admin_conference_sponsors_path(
conference_id: @conference.short_title),
2014-07-24 23:30:28 +03:00
alert: 'Sponsorships update failed.')
end
end
end
end