Style
This commit is contained in:
parent
2e692f7ea5
commit
01086813af
37 changed files with 221 additions and 190 deletions
|
|
@ -17,7 +17,7 @@ module Admin
|
|||
@room = @conference.rooms.new(room_params)
|
||||
if @room.save
|
||||
flash[:notice] = 'Room successfully created.'
|
||||
redirect_to(admin_conference_rooms_path(conference_id: @conference.short_title))
|
||||
redirect_to admin_conference_rooms_path(conference_id: @conference.short_title)
|
||||
else
|
||||
flash[:error] = "Creating Room failed: #{@room.errors.full_messages.join('. ')}."
|
||||
render :new
|
||||
|
|
@ -27,7 +27,7 @@ module Admin
|
|||
def update
|
||||
if @room.update_attributes(room_params)
|
||||
flash[:notice] = 'Room successfully updated.'
|
||||
redirect_to(admin_conference_rooms_path(conference_id: @conference.short_title))
|
||||
redirect_to admin_conference_rooms_path(conference_id: @conference.short_title)
|
||||
else
|
||||
flash[:error] = "Update Room failed: #{@room.errors.full_messages.join('. ')}."
|
||||
render :edit
|
||||
|
|
@ -37,10 +37,10 @@ module Admin
|
|||
def destroy
|
||||
if @room.destroy
|
||||
flash[:notice] = 'Room successfully deleted.'
|
||||
redirect_to(admin_conference_rooms_path(conference_id: @conference.short_title))
|
||||
redirect_to admin_conference_rooms_path(conference_id: @conference.short_title)
|
||||
else
|
||||
flash[:error] = "Destroying room failed! #{@room.errors.full_messages.join('. ')}."
|
||||
redirect_to(admin_conference_rooms_path(conference_id: @conference.short_title))
|
||||
redirect_to admin_conference_rooms_path(conference_id: @conference.short_title)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue