app/helpers/sessions_helper.rb
# logs out current user by removing the user id from sessions hash
logs out current user by removing the user id from sessions hash
logs out current user by removing the user id from sessions hash
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 out current user by removing the user id from sessions hash
logs out current user by removing the user id from sessions hash