Multiple choice technology web technology

Every model class in a rails application inherits from which of the following base class?

  1. ActiveRecord

  2. ApplicationRecord

  3. ActiveSummary

  4. ActiveModel

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Rails, every model class inherits from ActiveRecord::Base (or ApplicationRecord in Rails 5+, which itself inherits from ActiveRecord::Base). This provides ORM functionality, database interaction, validations, and associations. ActiveRecord is the core Rails component that connects models to database tables. ActiveModel is for non-database models, and the other options don't exist.