I have the following code:
@posts = Post.joins(:user).joins(:blog).select
which is meant to find all posts and return them and the associat
Good news, Rails 5 now supports LEFT OUTER JOIN. Your query would now look like:
LEFT OUTER JOIN
@posts = Post.left_outer_joins(:user, :blog)