How To Show User Friends Posts Using Ruby on Rails
Too Long; Didn't Read
How To Show User Friends Posts Using Ruby on Ruby on. Rails feature has created a mutual friendship feature. All that you need is to find the right association between User model and Post Model. Ruby On. Rails association is very simple and natural: A user has many friends. A friend has many posts, so the user’s friends’ posts are the. collection of all the friends. posts. The idea of friends�’. posts is simple: Users have a lot of posts. Users have friends with many posts.