title: LEFT OUTER joins in Rails 3
body: <p>I have the following code:</p>
  
  <pre><code>@posts = Post.joins(:user).joins(:blog).select
  </code></pre>
  
  <p>which is meant to find all posts and return them and the associated users and blogs.
  However, users are optional which means that the <code>INNER JOIN</code> that <code>:joins</code> generates is not returning lots of records.</p>
  
  <p>How do I use this to generate a <code>LEFT OUTER JOIN</code> instead?</p>