Fixes eventtype form

This commit is contained in:
Chrisbr 2014-04-28 20:08:06 +02:00
parent c67b255e05
commit 229581efc3
4 changed files with 6 additions and 7 deletions

View file

@ -8,9 +8,9 @@ class Admin::EventtypeController < ApplicationController
def update
begin
@conference.update_attributes!(params[:conference])
redirect_to(admin_conference_eventtype_list_path(:conference_id => @conference.short_title), :notice => 'Event types were successfully updated.')
redirect_to(admin_conference_eventtype_path(:conference_id => @conference.short_title), :notice => 'Event types were successfully updated.')
rescue Exception => e
redirect_to(admin_conference_eventtype_list_path(:conference_id => @conference.short_title), :alert => 'Event types update failed: #{e.message}')
redirect_to(admin_conference_eventtype_path(:conference_id => @conference.short_title), :alert => 'Event types update failed: #{e.message}')
end
end
end