paint-brush
How to Create A Friendship Relation on Railsby@Kubilay
2,196 reads
2,196 reads

How to Create A Friendship Relation on Rails

by Kubilay Caglayan4mJune 26th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this article, you will learn how to create friendships on the most basic form on rails. In this project we are choosing this model: Users are allowed to send a friendship invitation to other users. Users can accept or reject the invitation that is coming from another user. The invitation model will have only three columns: user_id, friend_id and confirmed. This means A user object will respond to the “invitations” call. On every users’ page, we have a “friends’ list” method of course. This will return an array of “Friends’s first friends”.

Company Mentioned

Mention Thumbnail
featured image - How to Create A Friendship Relation on Rails
Kubilay Caglayan HackerNoon profile picture
Kubilay Caglayan

Kubilay Caglayan

@Kubilay

Full Stack

About @Kubilay
LEARN MORE ABOUT @KUBILAY'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Kubilay Caglayan HackerNoon profile picture
Kubilay Caglayan@Kubilay
Full Stack

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite