Added funcitionality so user can change the email address associated with their accou...
[selectricity] / app / controllers / account_controller.rb
index 51bd80500f424b0cdd7329d0b961286c118cacab..ce4303dde9694e64a1c00d9293ba291e5abcf85e 100644 (file)
@@ -63,6 +63,15 @@ class AccountController < ApplicationController
     @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
 

Benjamin Mako Hill || Want to submit a patch?