How To Show User Friends Posts Using Ruby on Rails

Written by othmane-namani | Published 2019/12/18
Tech Story Tags: ruby | ruby-on-rails | socialmedia | beginners | tutorial | software-development | database | database-design

TLDR 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.via the TL;DR App

no story

Written by othmane-namani | Full Stack Web Developer
Published by HackerNoon on 2019/12/18