ruby on rails - Bidirectional relationships in ActiveRecord -


I want a "friend" relationship as "social site matter", which means: if I I am always my friend if I remove you from friends, then you too do this. (Well, you get this idea).

Currently it is done with dual relationships and a supervisor to add / remove the second (more accurate, "other") relationship to be removed / removed. / P>

What is the easiest way to implement the duplicate topic without record in the relation table? Maybe there's a gem / plugin to do this?

Leonid, in other words, is your friend in search, "Vpoezg" :)

< P> There is one of several topics on this topic:


Comments

Popular posts from this blog

MySql variables and php -

php - Laravel - Overriding a resource route into a different route filter group -

url rewriting - How to implement the returnurl like SO in PHP? -