Quantcast
Channel: Building a Twitter like feed in rails - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Marcelo Ribeiro for Building a Twitter like feed in rails

I would suggest you go with a single model: Tweet. It would also have children (or retweets if you want to call it that way). A retweet is still a tweet.class Tweet has_many :retweets, as: :parent,...

View Article



Building a Twitter like feed in rails

Currently, I have two models, tweet model and retweet model. They are connected via polymorphic association, because comments and retweets itself can be retweeted too.Tweet modelhas_many :retweets, as:...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images