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
I'm a big fan of the squeel gem:
Post.joins{user.outer}.joins{blog}
It supports both inner and outer joins, as well as the ability to specify a class/type for polymorphic belongs_to relationships.
inner
outer