MikeRogers0/MikeRogersIO

View on GitHub
src/_videos/2020-12-22-real-time-partial-updates-in-ruby-on-rails-using-hotwire-rails.md

Summary

Maintainability
Test Coverage
---
layout: video
title: Real-Time Partial Updates in Ruby on Rails using hotwire-rails
youtube_id: MRv4XGu6QkY
published_at: '2020-12-22T21:57:06Z'
---
Basecamp just released Hotwire ( https://hotwire.dev/ ), it's a collection of libraries which make creating blazingly fast frontends really simple with Ruby on Rails.

One of the most interesting parts, is how they did partial updates with turbo-rails ( https://github.com/hotwired/turbo-rails ), a few lines of code & you have an app which can update in real-time!

In this tutorial I run though how to setup the new hotwire stuff, and go though how to push new content to users.

https://rubygems.org/gems/hotwire-rails

# Chapters

0:00 - What are we going to do?
0:44 - Prerequisites
1:20 - Adding the hotwire-rails gem
2:10 - What files did it change?
3:39 - Making a index.html.erb page realtime?
10:19 - Using a custom partial
14:23 - Appending a new partial to a list
15:36 - I'm swooning over hotwire
16:03 - Questions?


# Support Me

- https://twitter.com/mikerogers0
- https://mikerogers.io
- https://www.buymeacoffee.com/MikeRogers0

#Hotwire-rails
#RubyOnRails
#AwesomeRubyGems