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
There is a left_outer_joins method in activerecord. You can use it like this:
@posts = Post.left_outer_joins(:user).joins(:blog).select