app/helpers/sessions_helper.rb
def remember(user)
		user.remember # creates a hash token & updates db col remember_digest
		cookies.permanent.signed[:user_id] = user.id 
		cookies.permanent[:remember_token] = user.remember_token
	end
# Logs in the given user.
Logs in the given user.
Logs in the given user .
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
Logs in the given user.
Logs in the given user .
# creates a hash token & updates db col remember_digest
user