I love diving into the details of a technology, learning how it works, and then explaining it in simple terms that everyone can understand.
Twenty Thousand Leagues Under ActiveRecord
We all know ActiveRecord allows you to perform complex SQL queries using simple, elegant Ruby code. It’s like magic, a useful magic we all use everyday in our Rails apps. But how does it actually work? We’ll find out by first exploring the shallow waters just under ActiveRecord: What is relational algebra? How does the Arel gem generate SQL string…