title: Active Record Join with most recent association object attribute
body: <p>I have a Contact model which has many Notes. On one page of my app, I show several attributes of a table of contacts (name, email, latest note created_at). </p>
  
  <p>For the note column, I'm trying to write a joins statement that grabs all contacts along with just their latest note (or even just the created_at of it</p>
  
  <p>What I've come up with is incorrect as it limits and orders the contacts, not their notes:</p>
  
  <pre><code>current_user.contacts.joins(:notes).limit(1).order('created_at DESC')
  </code></pre>