On Apr 26, 2011, at 8:05 PM, Tomas R. wrote:

How can I use a
User has_many Users?
my model is called Friends user_id friend_id
so a User can add a User as a friend


There's a Railscast about this: 
http://railscasts.com/episodes/163-self-referential-association

Walter


-- 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 rubyonrails- [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 .


--
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