Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Commit

Permalink
Fixed: broken design of error message in configuration page refs #167
Browse files Browse the repository at this point in the history
  • Loading branch information
mallowlabs committed Jan 18, 2014
1 parent 505e894 commit e3860b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/controllers/room_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def configure
when Room
expire_fragment [:roominfo, room.id, true]
expire_fragment [:roominfo, room.id, false]
when :error_room_not_found then flash[:errors] = t(:error_room_deleted)
when :error_on_save then flash[:errors] = t(:error_on_save)
when :error_room_not_found then flash[:error] = t(:error_room_deleted)
when :error_on_save then flash[:error] = t(:error_on_save)
end

redirect_to :action => 'configure'
Expand Down
3 changes: 0 additions & 3 deletions app/views/room/configure.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
-# -*- coding: utf-8 -*-
- if flash[:errors]
= raw flash[:errors]

.yield
= render :partial => "shared/room_info", :locals => { :room => @room, :has_button => false }
.configure
Expand Down

0 comments on commit e3860b9

Please sign in to comment.