app/models/user.rb
# generate new token, set on user, save user, and return token
generate new token, set on user, save user, and return token
generate new token set on user save user and return token
def reset_token!
    self.session_token = User.generate_session_token
    self.save!
    self.session_token
  end
def reset_token! self . session_token = User . generate_session_token self . save! self . session_token end
generate new token, set on user, save user, and return token
generate new token set on user save user and return token