diff options
author | Aleksei Kvitinskii <aleksei.kvitinskii@active.by> | 2011-10-20 02:34:05 +0400 |
---|---|---|
committer | Aleksei Kvitinskii <aleksei.kvitinskii@active.by> | 2011-10-20 02:34:05 +0400 |
commit | 59704f481e742710fff32c733047eb84478e505e (patch) | |
tree | d837909ea9b6e1387c71de5ef2c2ae568323f28c /app/controllers/profile_controller.rb | |
parent | 9ad444f02efbeb30365cdf7f23f9b2f846b45a03 (diff) |
extended user profile with social fields
Diffstat (limited to 'app/controllers/profile_controller.rb')
-rw-r--r-- | app/controllers/profile_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/profile_controller.rb b/app/controllers/profile_controller.rb index 666c6309dce..c8477729a92 100644 --- a/app/controllers/profile_controller.rb +++ b/app/controllers/profile_controller.rb @@ -3,6 +3,12 @@ class ProfileController < ApplicationController @user = current_user end + def social_update + @user = current_user + @user.update_attributes(params[:user]) + redirect_to [:profile] + end + def password @user = current_user end |