title: ActiveRecord find NOT(has_many)
body: <p>I have a very simple model like this:</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
      has_many :cookies
      has_many :fortunes, :through =&gt; :cookies
  end
  
  class Cookie &lt; ActiveRecord::Base
      belongs_to :user
      belongs_to :fortune
  end
  
  class Fortune &lt; ActiveRecord::Base
      has_many :cookies
      has_many :users, :through =&gt; :cookies
  end
  </code></pre>
  
  <p>For a given user, <code>u</code>, I can do</p>
  
  <pre><code>u.fortunes 
  </code></pre>
  
  <p>This will give me all the fortunes associated with this user via Cookies table. What I want to do is get all Fortunes not returned by <code>u.fortunes</code>. </p>
  
  <p>I tried </p>
  
  <pre><code>Fortune.all(:limit =&gt; 5, :conditions =&gt; {:user =&gt; {:id._ne =&gt; u.id} })
  </code></pre>
  
  <p>but that doesn't work :(. I am new to ActiveRecord.</p>
  
  <p>Thanks</p>