Blog

ApplicationRecord vs ActiveRecord::Base

Recently,. there was a discussion amongst my colleagues about why some of the models in our Rails 8 app inherit from ApplicationRecord while others inherit from ActiveRecord::Base. Lets dig in to these subtle but important distinctions, shall we? ApplicationRecord is a class that inherits from ActiveRecord::Base and serves as the base class for your applications...

Communicate across Stimulus controllers with Stimulus Outlets

Outlets represent one of Stimulus's most sophisticated tools for enabling seamless communication between javascript controller instances. Rather than relying on cumbersome event dispatching or global state management, Outlets provide a clean, declarative way to establish connections between different controllers using familiar CSS style selectors. (That is a bit of an oversimplification, TBH, but that is...

Hire Ruby on Rails Hotwire Developer

If you are looking to hire a ruby on rails developer that specializes in the ‘Hotwire' ecosystem of Turbo, Stimulus, and View Components, do drop me a line so we can have a chat.

Use halted_callback_hook for better Rails debugging

Rails applications are full of callbacks that control the flow of your models' lifecycle events. Whether it's before_save, before_create, or any other callback, these hooks are essential for maintaining data integrity and business logic. But what happens when something goes wrong and your callbacks start throwing :abort? That's where Rails' lesser-known halted_callback_hook comes to the...

Product Questions to Ask Before Building a New Feature in Ruby on Rails

As Ruby on Rails developers, it can be tempting to dive straight into building as soon as a feature request appears. But taking a moment to ask the right questions before writing any code can save time, reduce complexity, and lead to much better results. Being intentional at the start of the process helps ensure...

How to use Ruby On Rails with Generative AI

People are starting to figure out that modern Rails, specifically Hotwire and Turbo Streams, is the perfect choice for building web and mobile apps that integrate with AI models. Thanks to the hotwire tools, integrating generative AI into your Ruby on Rails application has never been easier—or more powerful. With tools like Ollama, Rails' built-in...

Hotwire Native Developer For Hire

Want to hire a Hotwire Native Developer to turn your Ruby On Rails app into an iOS or Android app? You've come to the right place. Get in touch!

Why choose Hotwire Native?

In an era where mobile applications are essential for business success, companies are facing a persistent challenge: the astronomical costs of mobile development. However, a technology called Hotwire Native is rapidly changing this landscape, offering businesses a way to create high-quality mobile applications at a fraction of the traditional cost. The traditional approach to mobile...

render in-app iOS and Android devise forms natively with this neat hotwire native trick

Hello Hotwire Weekly readers, It was an honor to be included in the most recent edition of Hotwire Weekly! If you love Rails and or Hotwire, please connect with me on LinkedIn here or on the bird app here. Recently I added the standard Devise authentication library to a Rails 8 hotwire app. However, I...

How to Migrate Your Website from WordPress to Astro

A complete guide to migrating from WordPress to Astro, including how to export your content using the WordPress REST API, write a migration script to convert posts to Markdown, and set up redirects to preserve your SEO. Learn the step-by-step process we used to successfully migrate from a legacy WordPress installation to a modern, lightning-fast Astro static site.

54 total posts — showing 41–50
Jesse Waites
Jesse Waites, Technologist & Software Architect, Hiker, Rock & Ice Climber