Thanks a ton. This one:

http://dizzy.co.uk/ruby_on_rails/contents/self-referential-table-joins

did the trick!

Colin Law wrote:
> 2009/8/7 Jason Burgett <[email protected]>:
>> friend_id: ineteger
>>
>> I would like to create relationship so I could do something like:
>>
>> friends_array = user.friends
>>
>> where friends_array would be an array of 'user' objects.
>> --
> 
> These might prove useful
> http://dizzy.co.uk/ruby_on_rails/contents/self-referential-table-joins
> http://railsforum.com/viewtopic.php?id=33161
> http://github.com/swemoney/has_many_friends/tree/master
> 
> Colin

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to