Hendrik,<br>Out of curiosity, what does your schema look like for Friendships?<br><br><b><i>Hendrik Mans &lt;hendrik@mans.de&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> So I'm one of those nasty people building a self-referential<br>habtm-like Association using the funky new :through stuff. This is<br>about users having friends, so here's my user.rb:<br><br>class User &lt; ActiveRecord::Base<br>  has_many :friendships, :foreign_key =&gt; 'user_id'<br>  has_many :friends, :through =&gt; :friendships, :source =&gt; :friend<br>end<br><br>And here's my friendship.rb:<br><br>class Friendship &lt; ActiveRecord::Base<br>  belongs_to :user<br>  belongs_to :friend, :class_name =&gt; 'User', :foreign_key =&gt; 'friend_id'<br>end<br><br>Now, everything is working great as long as I create instances of<br>Friendship "manually". Really no problems whatsoever, everything is<br>working just
 perfectly.<br><br>However, simply moving one user into another user's list of friends<br>does *not* seem to work:<br><br>  someone.friends &lt;&lt; someoneelse   # nothing happens<br><br>Considering I'm not seeing any notes about collection.&lt;&lt; not working<br>with :through associations, I'm wondering if this is specific to crazy<br>self-referential stuff like what I'm doing.<br><br>Any hints?<br><br>Danke!<br><br>--<br>http://www.mans.de<br>_______________________________________________<br>Rails mailing list<br>Rails@lists.rubyonrails.org<br>http://lists.rubyonrails.org/mailman/listinfo/rails<br></blockquote><br><p>
                <hr size=1>How low will we go? Check out Yahoo! Messenger’s low <a href="http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com"> PC-to-Phone call rates.