projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added funcitionality so user can change the email address associated with their accou...
[selectricity]
/
app
/
controllers
/
account_controller.rb
diff --git
a/app/controllers/account_controller.rb
b/app/controllers/account_controller.rb
index 51bd80500f424b0cdd7329d0b961286c118cacab..ce4303dde9694e64a1c00d9293ba291e5abcf85e 100644
(file)
--- a/
app/controllers/account_controller.rb
+++ b/
app/controllers/account_controller.rb
@@
-63,6
+63,15
@@
class AccountController < ApplicationController
@user = User.find(params[:id])
end
@user = User.find(params[:id])
end
+ def change_contact
+ @user = User.find(params[:id])
+ return unless request.post?
+ @user.email=params[:email]
+ @user.save!
+ flash[:notice] = "Email successfully updated"
+ render :action => 'summary'
+ end
+
end
end
Benjamin Mako Hill
||
Want to submit a patch?