app/helpers/sessions_helper.rb
# Logs in the given user.
Logs in the given user.
Logs in the given user .
def log_out 
		forget(current_user)
	    session.delete(:user_id)
	    @current_user = nil
  	end
def log_out forget ( current_user ) session . delete ( :user_id ) @current_user = nil end
Logs in the given user.
Logs in the given user .
#deletes cookies, session and sets remember_digest to nil