app/models/user.rb
# Remembers a user in the database for use in persistent sessions
Remembers a user in the database for use in persistent sessions
Remembers a user in the database for use in persistent sessions
def remember
    self.remember_token = User.new_token
    self.update_attribute(:remember_digest, User.digest(remember_token))
    remember_digest
  end
def remember self . remember_token = User . new_token self . update_attribute ( :remember_digest , User . digest ( remember_token ) ) remember_digest end
Remembers a user in the database for use in persistent sessions
Remembers a user in the database for use in persistent sessions