summaryrefslogtreecommitdiff
path: root/users/app/controllers
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-18 02:51:18 +0100
committerAzul <azul@leap.se>2012-12-18 02:51:18 +0100
commit6393a9d705f181bd7f81270b01448ae93acb96e5 (patch)
tree6311bea0c8bb40c5e7f4578d613a3f751031a03a /users/app/controllers
parentcd0c59ae6177b8b93971735887657314b6888a3c (diff)
display errors on email tab properly
still needs a bit of refactoring in the view
Diffstat (limited to 'users/app/controllers')
-rw-r--r--users/app/controllers/users_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb
index feb66c8..8ba6a7b 100644
--- a/users/app/controllers/users_controller.rb
+++ b/users/app/controllers/users_controller.rb
@@ -34,9 +34,9 @@ class UsersController < ApplicationController
if @user.changed? and @user.save
flash[:notice] = t(:user_updated_successfully)
else
- flash[:error] = @user.errors.full_messages
+ flash.now[:error] = @user.errors.full_messages.to_sentence
end
- respond_with @user, :location => edit_user_path(@user, :anchor => :email)
+ respond_with @user.reload, :location => edit_user_path(@user, :anchor => :email)
end
def destroy