title: How do I implement a 'social' aspect with mongoid
body: <p>I am attempting to create a friend network on a site I am making.  I am using Mongoid.  How do I instantiate friends?</p>
  
  <p>I assume that Users needs to have a relational association with multiple other users.  But the following code:</p>
  
  <pre><code>class User
    include Mongoid::Document
    references_many :users, :stored_as=&gt;:array, :inverse_of=&gt; :users
  end
  </code></pre>
  
  <p>tells me that I have an invalid query.  What am I doing wrong?  Does anybody have any suggestions on how to get what I am looking for?</p>