Guest User

Untitled

a guest
Apr 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. class UsersController < ApplicationController
  2. #other crap goes here
  3. def update
  4. if current_user.update_attributes(params[:user])
  5. flash[:notice] = "User has been updated."
  6. redirect_back_or_default root_path
  7. else
  8. flash[:notice] = "User could not be updated."
  9. redirect_back_or_default root_path
  10. end
  11. end
  12. end
Add Comment
Please, Sign In to add comment