mirror of
https://github.com/openSUSE/osem.git
synced 2026-04-28 10:51:17 -04:00
Get rid of the admin layout Get rid of the navbar custom style, use bootstrap-sass variables instead Get rid of all the scaffold files
16 lines
567 B
Ruby
16 lines
567 B
Ruby
class Admin::DietchoicesController < ApplicationController
|
|
before_filter :verify_organizer
|
|
|
|
def show
|
|
render :diets_list
|
|
end
|
|
|
|
def update
|
|
begin
|
|
@conference.update_attributes!(params[:conference])
|
|
redirect_to(admin_conference_dietary_list_path(:conference_id => @conference.short_title), :notice => 'Dietary choices were successfully updated.')
|
|
rescue Exception => e
|
|
redirect_to(admin_conference_dietary_list_path(:conference_id => @conference.short_title), :alert => "Dietary choices update failed: #{e.message}")
|
|
end
|
|
end
|
|
end |