Models
Introduction
Maintains the relationship between Object and Database and handles validation, association, transactions, and more. This subsystem is implemented in ActiveRecord library which provides an interface and binding between the tables in a relational database and the Ruby program code that manipulates database records. Ruby method names are automatically generated from the field names of database tables, and so on.
Rails Guides
- Active Record Basics
- Rails Database Migrations
- Active Record Validations
- Active Record Callbacks
- Active record Associations
- Active Record Query Interface
Tutorials
- RailsCasts Active Model
- The course