Fixes rooms form

This commit is contained in:
Chrisbr 2014-04-28 19:58:49 +02:00
parent fc11653f27
commit c4fbf8d038
4 changed files with 7 additions and 8 deletions

View file

@ -7,9 +7,9 @@ class Admin::RoomsController < ApplicationController
def update
if @conference.update_attributes(params[:conference])
redirect_to(admin_conference_rooms_list_path(:conference_id => @conference.short_title), :notice => 'Rooms were successfully updated.')
redirect_to(admin_conference_rooms_path(:conference_id => @conference.short_title), :notice => 'Rooms were successfully updated.')
else
redirect_to(admin_conference_rooms_list_path(:conference_id => @conference.short_title), :notice => 'Room update failed.')
redirect_to(admin_conference_rooms_path(:conference_id => @conference.short_title), :notice => 'Room update failed.')
end
end