Save 36% for Black Friday! Learn more

All threads / Question about twitter clone
Ask A Question


You’re not receiving notifications from this thread.

Question about twitter clone

Rickwheeler1992 asked in Rails

Hello. I’ve been seeing a few tutorials on twitter clones and I was thinking of trying one. With my idea, instead of following people, I would like it so users can follow hashtags. Is that even possible in Ruby on Rails?

Thanks in advance


Hey Rick,

Absolutely. If you can imagine it, you can build it. For following hashtags, you'd want to create a model for the Hashtag and then very similar to following users, you'd create a model to join the two records. I'd call it UserHashtag or something and just belongs_to :user and belongs_to :hashtag

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 67,819+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.