2013-02-02 16:43:47 +01:00
|
|
|
class Admin::DietchoicesController < ApplicationController
|
|
|
|
|
before_filter :verify_organizer
|
|
|
|
|
|
|
|
|
|
def show
|
|
|
|
|
render :diets_list
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def update
|
|
|
|
|
begin
|
|
|
|
|
@conference.update_attributes!(params[:conference])
|
2014-07-21 14:49:05 +02:00
|
|
|
redirect_to(admin_conference_dietary_list_path(conference_id: @conference.short_title), notice: 'Dietary choices were successfully updated.')
|
2014-07-21 14:37:26 +02:00
|
|
|
rescue => e
|
2014-07-21 14:49:05 +02:00
|
|
|
redirect_to(admin_conference_dietary_list_path(conference_id: @conference.short_title), alert: "Dietary choices update failed: #{e.message}")
|
2013-02-02 16:43:47 +01:00
|
|
|
end
|
|
|
|
|
end
|
2014-06-30 17:07:53 +02:00
|
|
|
end
|