Direct Messages In Realtime Chat App With Ruby On Rails 7 Chatroom | Turbo Tutorial Part 2

preview_player
Показать описание
This tutorial will teach you how to direct message users in your realtime chat app with Ruby on Rails 7 and Turbo.

In part 1 we created the Rails 7 Chatroom, but we left DMs for part 2. The pinned comment has a link to the playlist for this tutorial series.

This is all the latest tools, including Rails Hotwire, Rails 7 Turbo, and Rails 7 Stimulus, which mainly means it's a Rails 7 Turbo application.

Start from Episode 1 with this playlist:

Join this channel to help support these videos:

References used to make this project (So far)
Devise with Turbo:
The whole chat app:
Electron Guide:

Source Code for this video:
Source Code For Entire Project:
Devise Snippets for making Devise work with Turbo:

Follow me on social media:

Timestamps
0:00 Goals of Video and Teaser of Future App
1:16 Direct Messages in Ruby on Rails 7 With Turbo
1:37 Users Controller
7:27 Participants Model for Direct Messaging Users
8:16 Realtime Chatapp Room Model In Ruby
11:54 Direct Message Model Rails 7
13:58 Quick Bug Fix For Changing A User's Room To A DM In Rails 7
14:23 Trying To DM A User In Realtime With Turbo

#Deanin #Software #Programming
Рекомендации по теме
Комментарии
Автор


Next time we look forward to Stimulus and User Avatars. Hope this helps!

Deanin
Автор

Your tutorials are amazing!
I had never programmed before.
But now, I'm moving forward and achieving the goal.
My most sincere thanks!
Hugs from Brazil!

SandroTerra
Автор

Amazing tutorial so far, everything is clear to understand and the project is really fun

littlenikola
Автор

Am I the only one that would love to see Dean do a Rails 7 version of a wordpress competitor or something like permissions, roles, content. Love the content

DefCantGame
Автор

I wanted to thank you for your awesome work! It helped me alot. I also wanted to ask you, how come i cant see my messages once I send them unless I refresh the page :(( It was working just fine until now. Thanks again

angelconcha
Автор

Can you make a tutorial for a chat between client and workers? i believe is call a chat widget

PAOLASAVAL-dl
Автор

Nice tutorial! How can we authorize access to private messages just for two users and restrict third one to view the room ?

stoianstoianov
Автор

How can we reset the room input form field and message input form field after submission? Tried several times, but failing.

ShimolKhan-yd
Автор

I have followed the same but when I do direct message to a particular user the same message shows in all the other rooms. can you help me where did I go wrong . thanks in advance....

rohitkamalapur
Автор

How to detect if current user is actual current_user for edit/delete feature with broadcast?

DevBishwasBh