Posts tagged active-record

8 posts

Colleen Schnettler on Twitter

A tricky thing to remember in Active Record is how to query multiple associations vs. nested associations. Multiple associations take a list of symbols, nested associations take a hash with a symbol. pic.twitter.com/XhGiJdcH7h— Colleen Schnettler (@leenyburger) March 3, 2022

Arel with Wharel

Wharel is a tiny little gem that uses the empty room pattern to make Arel queries easier to build.

ebobby/has-many-with-set

An interesting variation on how to represent a many to many relationship in rails.