> i have user table > each user have lots of friends > how to design ? > act_as_tree , will it work ?
You could, but it would be messy since you and I could be friends so who has many? Start here: http://agilewebdevelopment.com/plugins/search?search=friends Find one that only requires a *single* row in the database to indicate you and I are friends as opposed to "Philip is a friend of Thani" *and* "Thani is a friend of Philip". Last time I did this I used http://agilewebdevelopment.com/plugins/has_many_friends . Worked well for me. -philip --~--~---------~--~----~------------~-------~--~----~ 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-talk@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---