title: rails: self-referential association
body: <p>My needs are very simple:  I have a Tip table to receive comments and have comments to receive comments, too. </p>
  
  <p>To retrieve each comment that is stored in the same table (comments), I created another key for the comments on comments: "inverse_comments".</p>
  
  <p>I tried to use one comments table by using self-referntial association.  Some resources seem to bring more than one table into the piture which are diffent from my needs.  So I came up whth the following modeling for comments:</p>
  
  <pre><code>class Comment &lt; ActiveRecord::Base
    belongs_to :tip 
    belongs_to :user
    has_many :mycomments, 
             :through =&gt; :inverse_comments,
             :source =&gt; :comment
  end
  </code></pre>
  
  <p>Apparently something is missing here but I cannot figure it out.
  Could some one enlighten me on this:</p>
  
  <p>what changes I need to do to make the model work?</p>
  
  <p>thanks.</p>