Episodes
In this episode, we look at various tricks in Ruby on Rails as well as some other neat tricks.
Published 05/05/24
Published 05/05/24
In this episode, we'll look at setting up a fresh Windows 11 environment for Ruby on Rails development. We'll be looking at a few different tricks that makes managing a Windows environment much easier.
Published 04/07/24
Ever wonder how you could add audio to interactions on a website. In this episode, we'll explore adding sounds whenever someone clicks on a link or button.
Published 04/01/24
In this episode, we look at running a self hosted Large Language Model (LLM) and consuming it with a Rails application. We will use a background to make API requests to the LLM and then stream the responses in real-time to the browser.
Published 03/03/24
In this episode, we look at some of the design patterns that are used in Campfire and my take on why they took this approach. We'll explore some of the code organization, search functionality, and more!
Published 02/04/24
In this episode, we explore the Campfire code from 37signals' Once product line. We'll install the product and grab the code base to get it up and running on our development environment.
Published 01/24/24
With Turbo 8 comes a lot of new features and in this episode, we'll explore an upgrading a blog post with comments to add in the new functionality.
Published 01/07/24
Keyboard shortcuts, or Hotkeys, can provide a great experience to users of an application. In this episode, we will use a stimulus wrapper around this library to use within our Ruby on Rails application.
Published 12/03/23
We can create a small python service that uses a Large Language Model (LLM) to detect if a message is spam or not. Using this service, we can tie it into our Rails application so that any comment created will be evaluated for being spam or not. We explore a few different routes on handling any messages flagged as spam.
Published 11/05/23
Stripe Checkout is one of my favorite ways to handle payments in Ruby on Rails applications. Stripe Checkouts will soon have an option to embed the Checkout into your web application. In this episode, we'll look at implementing this feature with a StimulusJS controller.
Published 10/01/23
A special release to celebrate 418 episodes. I talk about different HTTP response codes.
Published 09/06/23
In this episode, we look at adding system tests in our application to test our Stimulus Controllers. We'll also look at how to DRY up some of the tests and how to run them in a headless environment.
Published 09/03/23
When previewing PDF files that were uploaded through Active Storage, we can only get a simple image of the first page. In this episode, we'll look at taking the uploaded PDFs and interacting with them.
Published 08/06/23
In a previous episode, we had created a custom ActionCable channel to assist in broadcasting updates from a background job. With the introduction of Turbo, we can simplify this process as we look at a few different approaches in displaying a progress bar with real time updates from background jobs.
Published 07/02/23
In this episode, we take a few different approaches in how we display error pages in our Rails application. We'll also look at a few potential problems with each approach that we need to be aware of.
Published 06/04/23
In this episode, we explore session hijacking and an approach that we can take to limit the risk. There are some user experience and functionality caveats to this approach so they must be taken into consideration as well.
Published 05/07/23
In this episode, we look at creating an audio transcription service which allows files uploaded from Active Storage to be transcribed with Artificial Intelligence. However, there are a lot of considerations around the approach from both a performance and thread safety perspectives.
Published 04/02/23
MRSK deploys web apps anywhere from bare metal to cloud VMs using Docker with zero downtime. In this episode, we will set up a Digital Ocean infrastructure with a Load Balancer, Virtual Machines, and a PostgreSQL database. We'll use MRSK to provision and deploy our Rails application to the Virtual Machines.
Published 03/05/23
The asset pipeline can be confusing. So, in this episode, we explore Sprockets and the movement towards Propshaft, a new Rails library for managing assets. We'll also have a look at some nuances with jsbundling and how to overcome them.
Published 02/05/23
With the release of Turbo 7.2, we gained the ability to create custom actions in Turbo. This allows us to trigger functions on the client side that would have been difficult or cumbersome to do in the past. In this episode, we look at setting up custom actions and how to use them.
Published 01/01/23
Outlets let you reference Stimulus controller instances and their controller element from within another Stimulus Controller by using CSS selectors. In this episode, we look at a simple example and then refactoring some older code where we used some workarounds to communicate with other stimulus controllers.
Published 12/04/22
For various reasons, we may decide to move our services off of one platform onto another. This could be due to pricing, uptime or other reasons. In this episode, we look at migrating a Ruby on Rails application and database from Heroku to Fly.
Published 11/06/22
Hotwire is an alternative approach to building modern web applications without using much JavaScript by sending HTML instead of JSON over the wire. With Rails 7, we get Hotwire added in by default. In this episode, we look at some of the features with Hotwire and how to use them.
Published 10/02/22
When rake tasks need to be part of a deployment, you could find yourself in a situation where the rake task was forgotten about or have to go through the process of shelling into the environment to execute the tasks. In this episode, we look at addressing these issues by creating a way to have rake tasks execute automatically.
Published 09/04/22