All threads / How to block users from getting messages?

Ask A Question

Notifications

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 :

https://www.reddit.com/r/rails/comments/j3eszd/how_to_block_users_from_getting_messages/

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 39,609+ 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.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.