ActiveRecords and ActiveRelation
Good to see you, Geek!!! This blog page will help you to understand ActiveRecord and ActiveRelation. ActiveRecord and ActiveRelation are part of the Rails framework that's going to power your models. So before you begin coding on your models get a big picture understanding of how they work. Active Record Active record, when it's written all lowercase as two separate words refer to a commonly used design pattern for working with relational databases. It's not Rail specific. You could use the active record pattern in any programming language. It's an approach to designing object-oriented software. ActiveRecord, when it's written as one word with a capital A and R, refers to the Rails implementation of the active record pattern. Often you can use the terms interchangeably but it's helpful to understand the context and to know the difference. The ActiveRecord design pattern allows you to retrieve database data as objects. And then to wor...