Sponsors dashboard

Removed explicit rendering of sponsors
This commit is contained in:
Gopesh Tulsyan 2014-06-05 20:05:20 +05:30
parent e38a654af1
commit 67dab025a9
9 changed files with 139 additions and 4 deletions

View file

@ -0,0 +1,17 @@
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),
alert: 'Sponsorships updation failed')
end
end
end
end