title: Select all columns by a unique column value in Rails 3
body: <p>In Rails 3, how do i select rows based on unique column values, i need to get all the columns for eg:</p>
  
  <pre><code>SELECT COUNT(DISTINCT date) FROM records
  </code></pre>
  
  <p>This only returns date column, but i want all the columns (name, date , age , created_at) columns not just the date.</p>
  
  <p>Thanks for your help</p>