Writer of code(mostly Rails) & Essays. Currently looking for entry level Rails opportunities
Oct 14 • 11 tweets • 3 min read
Your first Hotwire application, a blog series. Part 2
This part of the series will serve as a gentle introduction to what Turbo frames are used for and how to integrate them into the blog application we built in the first part of the series. x.com/zhephyn/status…x.com/zhephyn/status…
We use Turbo frames to "slice" a web page into independent sections, and have updates applied to these individual sections instead of the entire page.
Enclosing a section of a page in a turbo frame tag like below, turns that section into a Turbo frame.
Aug 21 • 18 tweets • 5 min read
This tutorial is meant to serve as an introduction to Action Cable. For those unfarmiliar with what Action Cable is, basically all things real-time in rails are handled by action cable. I'll take you from the basics of action cable configuration up to the final version of the app
Below is a gif of what we'll build. A simple app where by we navigate to a room in the browser and we see messages appended to that room in real-time without the need for refreshing.