diff options
author | Azul <azul@leap.se> | 2012-12-07 17:26:42 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-12-07 17:26:42 +0100 |
commit | 8282b83c798ba4e5c1e26ec8243b82669b3ee6d4 (patch) | |
tree | 4df73c0a0f37ee9f16cd3f15fc2d23f458ca09ba /users/app/controllers/users_controller.rb | |
parent | bc2ead40468f0d9372372f73260d83d30e93bc9a (diff) | |
parent | bfe61e5132b379461425ce868e980e3a1ea0260a (diff) |
Merge branch 'feature/email-forwards-for-users'
Diffstat (limited to 'users/app/controllers/users_controller.rb')
-rw-r--r-- | users/app/controllers/users_controller.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb index cffc8c6..4921a4a 100644 --- a/users/app/controllers/users_controller.rb +++ b/users/app/controllers/users_controller.rb @@ -30,8 +30,10 @@ class UsersController < ApplicationController end def update - @user.update_attributes(params[:user]) - respond_with @user + if @user.update_attributes(params[:user]) + flash[:notice] = t(:user_updated_successfully) + end + respond_with @user, :location => edit_user_path(@user) end def destroy |