summaryrefslogtreecommitdiff
path: root/users/app/controllers/users_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/controllers/users_controller.rb')
-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