title: ActiveRecord find with joins and associations?
body: <p>I have a model TwitterUser that has_one website as shown in the model below:</p>
  
  <pre><code>class TwitterUser &lt; ActiveRecord::Base
      has_one :website, :foreign_key =&gt; :id, :primary_key =&gt; :website_id
  end
  </code></pre>
  
  <p>I'm trying to run a query that will join TwitterUser with Website and get all TwitterUsers' with a website that has an updated_at date > a certain date, limited to 10 rows.</p>
  
  <p>I thought this would give me what I wanted, but apparently it's not. What's wrong with it?</p>
  
  <pre><code>TwitterUser.includes().find(:all, :limit =&gt; 10, :conditions =&gt; ["websites.updated_at &gt;= '2013-05-12 05:31:53.68059'"], :joins =&gt; :website)
  </code></pre>
  
  <p>In my database, my twitter_users table consist of a website_id field.
  My websites table has an id field.</p>