Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def update
- user = User.find(params[:id]).update_attributes! params[:user]
- end
- def update_email
- user = User.find(params[:id]).update_attributes! email: params[:user][:email]
- end
- def update_password
- user = User.find(params[:id]).update_attributes! password: params[:user][:password]
- end
Add Comment
Please, Sign In to add comment