News for hackers. Stuff that matters.
Re:Frameworks Don't Make Much Sense by tarsinge on Friday March 11, 2016 @02:59AM (#11265317)
In Rails for complex applications I always start with the SQL in my mind, and I bend the ORM to produce my SQL (if I can, otherwise I use plain SQL). For example to generate a NOT IN : ModelA.where.not(id: ModelA.joins(:model_b).where(...).select(:id))

There are no comments on this comment yet.