app/helpers/sessions_helper.rb
# log in the given user
# since this uses session method, cookies are encrypted by default
log in the given user
since this uses session method, cookies are encrypted by default
log in the given user since this uses session method cookies are encrypted by default
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
log in the given user
since this uses session method, cookies are encrypted by default
log in the given user since this uses session method cookies are encrypted by default