app/helpers/sessions_helper.rb
# Logs in the given user.
Logs in the given user.
Logs in the given user .
def forget(user)
    	user.forget 
    	cookies.delete(:user_id)
    	cookies.delete(:remember_token)
  	end
def forget ( user ) user . forget cookies . delete ( :user_id ) cookies . delete ( :remember_token ) end
Logs in the given user.
Logs in the given user .
# makes remember_digest nil
user
<not_specific>