summaryrefslogtreecommitdiff
path: root/users/app/controllers
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-10 20:16:26 +0100
committerAzul <azul@leap.se>2012-12-10 20:16:26 +0100
commitd9fa19106998bc6ac484494334dcf150bb6aa5d5 (patch)
tree3e0fee408c471f4355d0724387ad4787b2507999 /users/app/controllers
parent2695bf598cfbe860b202ebc96a4243af391d4582 (diff)
email format validations
Diffstat (limited to 'users/app/controllers')
-rw-r--r--users/app/controllers/users_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb
index 5055f4e..811e8e5 100644
--- a/users/app/controllers/users_controller.rb
+++ b/users/app/controllers/users_controller.rb
@@ -33,6 +33,8 @@ class UsersController < ApplicationController
@user.attributes = params[:user]
if @user.changed? and @user.save
flash[:notice] = t(:user_updated_successfully)
+ else
+ flash[:error] = @user.errors.full_messages
end
respond_with @user, :location => edit_user_path(@user)
end