Mark's Blog About Search Activity

LEFT OUTER JOIN with ARel

Found this post very helpful, so bookmarking here on my blog.

Basic idea is to use .includes(:assoc) instead of joins. Squeel supports a little cleaner DSL so you can do .join(:assoc.outer)

If you liked this post, you can share it with your followers or follow me on Twitter!
comments powered by Disqus