© Stefan Wintermeyer 2018
Stefan WintermeyerLearn Rails 5.2https://doi.org/10.1007/978-1-4842-3489-1_3

3. ActiveRecord

Stefan Wintermeyer1 
(1)
Bochum, Germany
 

ActiveRecord is a level of abstraction that offers access to a SQL database. ActiveRecord implements the architectural pattern Active Record.

../images/460214_1_En_3_Chapter/460214_1_En_3_Figa_HTML.gif This is referred to as object-relational mapping (ORM) . I find it rather dry and boring, but if you have trouble going to sleep tonight, take a look at http://en.wikipedia.org/wiki/Object_relational_mapping .

One of the recipes for the success of Rails is surely the fact that it uses ActiveRecord. The programming and use “feels Ruby-like,” and it is much ...

Get Learn Rails 5.2: Accelerated Web Development with Ruby on Rails now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.