What exactly is an active record? I hear this term used in Ruby post and nhibernate.
+1
A:
It s a Design Pattern.
A:
Active record is a design pattern where you map each table to a class. This means that each object created from this class represents a row in the table.
Almond
2009-11-16 02:33:28
A:
ActiveRecord is a design pattern in which you treat one row of a database table like an object. In Rails, each of the column names can be accessed via the object's methods.
Think of it as an interface for manipulating data in the database.
Matt
2009-11-16 02:39:23
+6
A:
Active record was initially a design pattern which involved wrapping database table operations in a class.
In a Rails context, however, it is also the proper name of a particular software component which implements the design pattern in Ruby for object-relational mapping, and the name of its associated module.
DigitalRoss
2009-11-16 02:42:03