enable style ClassAndModuleChildren

This commit is contained in:
Stella Rouzi 2014-08-06 21:14:00 +03:00
parent 2f814c7320
commit 1c1391c69e
15 changed files with 475 additions and 448 deletions

View file

@ -1,19 +1,21 @@
class Admin::RoomsController < ApplicationController
before_filter :verify_organizer
module Admin
class RoomsController < ApplicationController
before_filter :verify_organizer
def show
render :rooms_list
end
def show
render :rooms_list
end
def update
if @conference.update_attributes(params[:conference])
redirect_to(admin_conference_rooms_path(
conference_id: @conference.short_title),
notice: 'Rooms were successfully updated.')
else
redirect_to(admin_conference_rooms_path(
conference_id: @conference.short_title),
notice: 'Room update failed.')
def update
if @conference.update_attributes(params[:conference])
redirect_to(admin_conference_rooms_path(
conference_id: @conference.short_title),
notice: 'Rooms were successfully updated.')
else
redirect_to(admin_conference_rooms_path(
conference_id: @conference.short_title),
notice: 'Room update failed.')
end
end
end
end