The example at the bottom of page 41 illustrates stand-alone usage of Active Record. It requires active_record
, and It omits stuff related to the connection for convenience. Cool.
The superclass should be ActiveRecord::Base
. That is your regular superclass in stand-alone usage (as it was in Rails for many years). ApplicationRecord
is a class generated by Rails in app/models
.