How to build a complete, real-world application from scratch with Ruby on Rails step by step.
A lot of Ruby code is "magic". We'll explain the magic and see how it works using the powerful tools Ruby gives us.
Accept subscription and one-time payments with Stripe in your Rails apps
Expert advice on keeping Rails apps organized and fast.
Learn how to build fast, modern web apps with HTML over the wire.
Setup your computer with Ruby on Rails and deploy to a production server.
Cheap, easy hosting for Ruby and Rails apps.
Launch your product business way faster with our SaaS template.
A weekly podcast on web development and building products with Ruby, Rails, Javascript, and more.
A few of the Open Source projects we do at GoRails.
Build a Ruby on Rails app in 48 hours with us.
Help Junior developers get hired by sharing small projects to build their resume with paid work.
Find your next Ruby on Rails Job.
Continuing on in our chat app with Hotwire, we are going to be implementing the ability to indicate to users that they have unread messages in conversations.
To provide clean integrations with Rails plugins, we can use lazy load hooks to add callbacks for when classes are loaded.
Let's add the ability to edit the contents of our messages and broadcast page refreshes so that everyone can see the latest version of our messages.
Showing users that they have unread messages is nice but it would be nicer if we scrolled them to the start of those unread messages when they visit a conversation which is what we will implement in this lesson.
In this lesson, we will look at an extremely simple way to implement keeping track of and displaying the online/logged in status of users in our chat application.
Join 90,592+ developers who get early access to new tutorials, screencasts, articles, and more.
We care about the protection of your data. Read our Privacy Policy.