app/helpers/sessions_helper.rb
# aassignes the user's id to user_id symbol in sessions 
# hash for easy retrieval of user information from database using id
aassignes the user's id to user_id symbol in sessions
hash for easy retrieval of user information from database using id
aassignes the user ' s id to user_id symbol in sessions hash for easy retrieval of user information from database using id
def remember(user)
      user.remember
      cookies.permanent.signed[:user_id] = user.id
      cookies.permanent[:remember_token] = user.remember_token
    end
def remember ( user ) user . remember cookies . permanent . signed [ :user_id ] = user . id cookies . permanent [ :remember_token ] = user . remember_token end
aassignes the user's id to user_id symbol in sessions
hash for easy retrieval of user information from database using id
aassignes the user ' s id to user_id symbol in sessions hash for easy retrieval of user information from database using id
# signed = encrypte the cokkie # permanent = we want the user id to be paired with the permanent remember token
user
<not_specific>