Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UsersController < ApplicationController
- #other crap goes here
- def update
- if current_user.update_attributes(params[:user])
- flash[:notice] = "User has been updated."
- redirect_back_or_default root_path
- else
- flash[:notice] = "User could not be updated."
- redirect_back_or_default root_path
- end
- end
- end
Add Comment
Please, Sign In to add comment