Create a gist now
Instantly share code, notes, and snippets.
HTTPS clone URL
Subversion checkout URL
|@friends_out = Friendship.where(:user_id=>current_user.id) #users "i" want to be friends with|
|@friends_in = Friendship.where(:friend_id=>current_user.id) #users who want to be friend with "me"|
|# users who haven't added "my" id to Friendship and vice versa|
|# user who are my friend and i'm their friends.|