How to Track Online Users in Rails 6 - Ruby on Rails Tutorial

Published: 19 February 2020
on channel: David Battersby
2,704
68

Let's look at how to track online users (currently signed in users) on your application using timestamps. In this quick Rails 6 tutorial, we'll look at adding a new field to our devise model to track the last seen at time stamp. We'll display a total users online value and a table to show all online users.

🎓Purchase my Ruby on Rails 6 Complete Beginners Course - (use code LEARNRAILS to save 33%)
https://www.udemy.com/course/complete...

Scout APM - Rails App performance improvements, debug N+1 queries and more (FREE trial).
https://try.scoutapm.com/david_batter...

Check out my website, where you can purchase a completed version of some of my app builds to use as a starter for your own project, we also have web app clones for Reddit, Instagram, Craigslist, Tinder and a Real Estate Platform.

Source code for this video is available here:
https://github.com/dbattersby/rails-o...

💻 Get $100 FREE credit to spend on your own web servers (servers from $2.50 per month).
https://www.vultr.com/?ref=8754159 (perfect for Rails / JS / PHP)

If you want to learn more about programming in Ruby, subscribe for more videos on the Ruby language and Ruby on Rails framework for startups and web development.


Watch video How to Track Online Users in Rails 6 - Ruby on Rails Tutorial online without registration, duration hours minute second in high quality. This video was added by user David Battersby 19 February 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,704 once and liked it 68 people.