All threads / How to block users from getting messages?
Ask A Question


You’re not receiving notifications from this thread.

How to block users from getting messages?

Ulas asked in Rails

Hey everyone,

I have an internal messaging system in Rails 6.

I was wondering how can I add the logic for a button to block the user in conversation that I'm messaging with.

My setup and details are available on my reddit post :

Any help is appreciated on how to approach this!
Many thanks.

Join the discussion

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

Join 66,029+ 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.