Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the inner workings of Active Record associations in this 32-minute conference talk from RailsConf 2022. Delve into the seemingly magical world of has_many and belongs_to macros, uncovering the thoughtful design and metaprogramming that power these essential Rails features. Learn how to write your own association macros, dynamically define methods, cache query results, and prevent N+1 queries through inverse relationships. Gain a deeper understanding of how Active Record associations function and develop a newfound appreciation for their capabilities in Ruby on Rails development.