Tutorials


Create an infinite scrolling blog roll in Rails with Hotwire
In this tutorial, I'll show you how to add an infinitely scrolling blog roll using Rails and Hotwire. Note that this is different than Chris Oliver's awesome infinite scroll tutorial, in that we're loading a new post once a user scrolls to the bot...

How to Build a Twitter Clone with Rails and Hotwire · Rob Race
Hotwire is fresh out of the Basecamp Github and has set the Rails community ablaze. This quick write up is an update from How to Build a Twitter Clone with rails, ActionCable, and React to show a comparison between the two approaches.Now, this doe...

An introduction to Hotwire, ActionText and Rails 6
Hotwire is a shiny new HTML-over-WebSocket framework developed by Basecamp. Its purpose is to perform real-time DOM-patching using ActionCable and JavaScript. You can compare it to Phoenix LiveView, but unlike LiveView, Hotwire is stateless.I took...


Hotwire in Rails 6.1 - A First Look At CRUD With A Hands-On Todo List
Hotwire is brand new in Ruby on Rails 6.1, and today we're going to be taking a look at it. I like to learn things as hands-on as possible, so for my first look, I decided to create a CRUD application. This naturally meant making a todo list!We st...

A Quick Tutorial to Implement Active Model Serializers
Serializer gem allows us to format our JSON easily. It will enable us to select only the data we want and access our relationships with a single request. Active Model Serializers provides a way of creating custom JSON in an object-oriented manner....

Common issues with CSV parsing with Ruby and solutions to them
Problem: you are parsing a large CSV file, and it takes a lot of time to process the whole file, or your server is running out of memory when the process is in the middle.Solution: when processing CSV files with Ruby, always use the CSV.foreach me...
