How to Create A Friendship Relation on Railsby@Kubilay
2,184 reads

How to Create A Friendship Relation on Rails

June 26th 2020
4m
by @Kubilay 2,184 reads
tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

Kubilay Caglayan

Full Stack


Receive Stories from @Kubilay

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!