views:

182

answers:

1

Hi,

We're try to add a basic "invite a friend social networking" component to users. We already installed RailsCasts beta-invitation but need to create where the user :has_many friends type relationship upon the friend successfully signing up.

Can someone recommend a tutorial and/or plugin as necessary?

I have come across this thread:

http://stackoverflow.com/questions/48320/best-ruby-on-rails-social-networking-framework

And a particularly interesting link, but would like thoughts from people:

http://www.zetetic.net/blog/2007/09/21/social-networking-with-rails-using-actsasnetwork/

+3  A: 

http://communityengine.org/

This is a good website, and can help overcome many social networking related issues in rails. Again having invite a friend you may need a polymorphic object of type user. There will also be a many to many relationship.

Specifically on this question i would suggest to call a after_filter method which adds a has_many :friends in the user class, after successful sign up for new user.

T.Raghavendra