keeping changes up to date

This commit is contained in:
Ken Johnson
2013-05-31 19:55:49 -04:00
parent 6199beb780
commit 417aca2078
102 changed files with 9050 additions and 1 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class UsersController < ApplicationController
current_user.update_attributes(params[:user].reject { |k| k == ("password" || "password_confirmation") })
pass = params[:user][:password]
current_user.password = pass if !(pass.blank?)
current_user.save!
flash[:success] = "Account Updated!" if current_user.save!
redirect_to user_account_settings_path(:user_id => current_user.user_id)
end