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

16 lines
524 B
Ruby
Raw Normal View History

class Admin::SocialEventsController < ApplicationController
before_filter :verify_organizer
def show
render :social_events_list
end
def update
if @conference.update_attributes(params[:conference])
2014-07-21 14:49:05 +02:00
redirect_to(admin_conference_social_events_path(conference_id: @conference.short_title), notice: 'Social events were successfully updated.')
else
2014-07-21 14:49:05 +02:00
redirect_to(admin_conference_social_events_path(conference_id: @conference.short_title), notice: 'Social events update failed.')
end
end
end