app/helpers/sessions_helper.rb
# Logs in the given user.
Logs in the given user.
Logs in the given user .
def remember(user)
    user.generate_token
    cookies.permanent.signed[:user_id] = user.id
    cookies.permanent[:remember_token] = user.remember_token
    user.update_token
  end
def remember ( user ) user . generate_token cookies . permanent . signed [ :user_id ] = user . id cookies . permanent [ :remember_token ] = user . remember_token user . update_token end
Logs in the given user.
Logs in the given user .
user
<not_specific>