
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
      <title>RailsNotes, the Ruby on Rails guides you wished you had.</title>
      <link>https://railsnotes.xyz/blog</link>
      <description>The Ruby on Rails guides you wished you had, when you were first starting out. Read interesting articles about Hotwire, Stimulus, ActionMailer, Databases, Deployment and more.</description>
      <language>en-us</language>
      <managingEditor>harrison@railsnotes.xyz (Harrison Broadbent)</managingEditor>
      <webMaster>harrison@railsnotes.xyz (Harrison Broadbent)</webMaster>
      <lastBuildDate>Wed, 05 Jul 2023 00:00:00 GMT</lastBuildDate>
      <atom:link href="https://railsnotes.xyz/feed.xml" rel="self" type="application/rss+xml"/>
      
  <item>
    <guid>https://railsnotes.xyz/blog/adding-redis-and-sidekiq-to-a-ruby-on-rails-app</guid>
    <title>Adding Redis and Sidekiq to your Ruby on Rails app</title>
    <link>https://railsnotes.xyz/blog/adding-redis-and-sidekiq-to-a-ruby-on-rails-app</link>
    <description>Here are the basics of installing Redis and Sidekiq, and then adding Redis and Sidekiq to your Ruby on Rails app. This is everything you need to get set up — no fluff, just a couple of commands. Let&#39;s go!</description>
    <pubDate>Wed, 05 Jul 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>redis</category><category>sidekiq</category><category>development</category><category>procfile</category><category>popular</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/ahoy-product-analytics</guid>
    <title>Internal product analytics with Ahoy</title>
    <link>https://railsnotes.xyz/blog/ahoy-product-analytics</link>
    <description>Learn how to use the Ahoy gem to track feature usage within your Ruby on Rails apps.</description>
    <pubDate>Fri, 30 May 2025 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>ahoy</category><category>analytics</category><category>gem</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/blazer-gem-rails</guid>
    <title>Exploring the Blazer gem</title>
    <link>https://railsnotes.xyz/blog/blazer-gem-rails</link>
    <description>Learn how to use the Blazer gem in your Ruby on Rails app to query data in SQL, build dashboards, and run automated checks.</description>
    <pubDate>Fri, 30 May 2025 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>blazer</category><category>analytics</category><category>gem</category><category>bi</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/custom-credentials-in-your-rails-app</guid>
    <title>Replace .env with Rails Credentials in your Ruby on Rails app</title>
    <link>https://railsnotes.xyz/blog/custom-credentials-in-your-rails-app</link>
    <description>A deep dive into the basics of Rails credentials, explore their benefits and drawbacks, and showing you how easy it is to integrate this powerful tool into your Rails app development process...</description>
    <pubDate>Sun, 14 May 2023 07:49:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>credentials</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/deploying-ruby-on-rails-on-render-with-databse-redis-sidekiq-cron</guid>
    <title>Deploying a Ruby on Rails App on Render with a Database, Redis, Sidekiq, and Cron Jobs</title>
    <link>https://railsnotes.xyz/blog/deploying-ruby-on-rails-on-render-with-databse-redis-sidekiq-cron</link>
    <description>A full guide for deploying a Ruby on Rails app to Render with a database, Redis, Sidekiq, and Cron jobs. This guide steps you through deploying your Rails app to Render, including setting up Redis, Sidekiq and Cron jobs to give you a great production-ready starter. </description>
    <pubDate>Sun, 07 May 2023 17:16:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>render</category><category>deployment</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/deploying-ruby-on-rails-with-dokku-redis-sidekiq-arm-docker-hetzner</guid>
    <title>Deploying Ruby on Rails with Dokku (Redis, Sidekiq, ARM servers and Docker).</title>
    <link>https://railsnotes.xyz/blog/deploying-ruby-on-rails-with-dokku-redis-sidekiq-arm-docker-hetzner</link>
    <description>This is the ultimate Dokku + Ruby on Rails guide — I cover running Dokku on x86 and ARM, deploying Sidekiq and Redis, dockerizing our Ruby on Rails app, and more...</description>
    <pubDate>Fri, 30 Jun 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>deployment</category><category>dokku</category><category>docker</category><category>popular</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/feature-specs-to-system-specs</guid>
    <title>Refactoring from feature specs to system specs</title>
    <link>https://railsnotes.xyz/blog/feature-specs-to-system-specs</link>
    <description>In this article, I break down the difference between system specs and feature specs in RSpec and Rails, and walk you through refactoring your feature specs to system specs.</description>
    <pubDate>Sun, 17 Sep 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>rspec</category><category>testing</category><category>refactoring</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/ferrum-stealth-browsing</guid>
    <title>Stealthly Web Scraping in Ruby with Ferrum</title>
    <link>https://railsnotes.xyz/blog/ferrum-stealth-browsing</link>
    <description>Learn how to setup Ruby and Ferrum for stealthy web scraping and browsing, including setting up correct headers, proxying requests, rotating your user agents, restricting bandwidth usage and more.</description>
    <pubDate>Tue, 21 Jan 2025 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>ferrum</category><category>web-scraping</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/overmind-better-bin-dev-for-your-procfile-dev</guid>
    <title>Overmind 🪬, a better bin/dev for your Procfile</title>
    <link>https://railsnotes.xyz/blog/overmind-better-bin-dev-for-your-procfile-dev</link>
    <description>Overmind is a Procfile manager on steroids — like Foreman and bin/dev, but... a lot better. It&#39;s deeply configurable, and integrates with tmux so you can stop, restart and attach to running processes.</description>
    <pubDate>Wed, 26 Jul 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>procfile</category><category>development</category><category>popular</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/parallel-rspec</guid>
    <title>Run RSpec specs in parallel (with the parallel_rspec gem)</title>
    <link>https://railsnotes.xyz/blog/parallel-rspec</link>
    <description>Run RSpec in parallel and speedup your specs by 2x-4x locally using the handy parallel_rspec gem.</description>
    <pubDate>Wed, 01 Oct 2025 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>rspec</category><category>tests</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/preview-rails-emails-letter-opener-mailcatcher-mailhog</guid>
    <title>Preview Rails mailers with letter_opener, MailCatcher and MailHog</title>
    <link>https://railsnotes.xyz/blog/preview-rails-emails-letter-opener-mailcatcher-mailhog</link>
    <description>This article covers everything you ever wanted to know (and more) about previewing emails and ActionMailer templates in Ruby on Rails. I cover native ActionMailer previews, the letter_opener gem, MailCatcher and MailHog. I&#39;ve tested them all, and I cover how to use them, and their pros and cons.</description>
    <pubDate>Mon, 07 Aug 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>actionmailer</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/procfile-bin-dev-rails7</guid>
    <title>Procfile.dev, bin/dev, and Rails 7 — how they work, why they&#39;re great.</title>
    <link>https://railsnotes.xyz/blog/procfile-bin-dev-rails7</link>
    <description>Rails 7 introduced a lot of new things, but honestly, the `bin/dev` script is the thing I notice the most. I want to try to give your some insight into how `bin/dev` and `Procfile.dev` work together...</description>
    <pubDate>Sat, 01 Jul 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>development</category><category>procfile</category><category>popular</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/rails-8-whats-coming</guid>
    <title>Here&#39;s what&#39;s coming in Rails 8</title>
    <link>https://railsnotes.xyz/blog/rails-8-whats-coming</link>
    <description>Work on Rails 8 is starting, so I dug through the official GitHub milestone to break down all the upcoming goodies for you. There&#39;s plenty coming, including Solid Queue, Solid Cache and Kamal becoming defaults, better support for PWAs, an official LSP, and more!</description>
    <pubDate>Fri, 05 Jan 2024 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>rails</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/rails-actionmailer-attachments</guid>
    <title>ActionMailer attachments in Ruby on Rails</title>
    <link>https://railsnotes.xyz/blog/rails-actionmailer-attachments</link>
    <description>ActionMailer makes it easy to attach files to your emails. In this article, I show you how to attach single or multiple files, set custom encodings and mime_types, and attach images as inline attachments to display in your email body.</description>
    <pubDate>Sat, 28 Oct 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>actionmailer</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/rails-add-favicon-2-minutes</guid>
    <title>Add a favicon to your Rails app in 2 minutes</title>
    <link>https://railsnotes.xyz/blog/rails-add-favicon-2-minutes</link>
    <description>This is a super short article on how to add a favicon to your Ruby on Rails app. We combine the favicon_link_tag helper with asset_path, which makes it quick and easy.</description>
    <pubDate>Fri, 25 Aug 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>tips</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/rails-credentials-vscode-edit</guid>
    <title>Edit Rails Credentials using VS Code</title>
    <link>https://railsnotes.xyz/blog/rails-credentials-vscode-edit</link>
    <description>This short guide shows you how to use VS Code to edit secrets in your Ruby on Rails app when you run `rails credentials:edit`. I also include a handy `bin/credentials:edit` script to simplify things.</description>
    <pubDate>Thu, 04 Jan 2024 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>credentials</category><category>vscode</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/rails-debugger-rdbg-vscode</guid>
    <title>Using Rails debugger/rdbg with VS Code</title>
    <link>https://railsnotes.xyz/blog/rails-debugger-rdbg-vscode</link>
    <description>A short introduction to the rdbg/debugger extension for VS Code, plus a guide on how to set it up correctly to debug your Ruby on Rails applications, as well as your RSpec specs. The VS Code extension takes 5 minutes to setup and it&#39;s great!</description>
    <pubDate>Tue, 12 Mar 2024 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>vscode</category><category>development</category><category>debugger</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/rails-dynamic-nav-current-page</guid>
    <title>Build dynamic navs with current_page? (and conditional classes)</title>
    <link>https://railsnotes.xyz/blog/rails-dynamic-nav-current-page</link>
    <description>This article explores a dynamic nav component I built using the current_page? helper method, plus Rails&#39; conditional class helpers. The result? A simple, dynamic navbar component, with different styling based on current page. Plus I threw in the ViewComponent version too 😉</description>
    <pubDate>Fri, 01 Sep 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>ui</category><category>viewcomponents</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/rails-generate-migration</guid>
    <title>Rails Generate Migration (handy reference)</title>
    <link>https://railsnotes.xyz/blog/rails-generate-migration</link>
    <description>A handy reference for generating migrations in your Ruby on Rails app — I cover the basics like adding columns and tables, adjusting column types (and loads more), plus some tips and tricks...</description>
    <pubDate>Mon, 10 Jul 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>database</category><category>migrations</category><category>generators</category><category>popular</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/rails-viewcomponent-tips</guid>
    <title>Some ViewComponent tips (how I write them)</title>
    <link>https://railsnotes.xyz/blog/rails-viewcomponent-tips</link>
    <description>In this article, I share tips for writing Rails ViewComponents, based on my experience building RailsNotes UI, and other projects. If you use ViewComponents in your Ruby on Rails apps, read this article!</description>
    <pubDate>Sat, 14 Oct 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>viewcomponents</category><category>tips</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/refactoring-a-ruby-on-rails-app-to-use-actionmailer-for-transactional-email</guid>
    <title>From API calls to ActionMailer — Refactoring a Rails App to Use ActionMailer for transactional email</title>
    <link>https://railsnotes.xyz/blog/refactoring-a-ruby-on-rails-app-to-use-actionmailer-for-transactional-email</link>
    <description>How I switched from using direct SendGrid API calls to implementing ActionMailer for cleaner, more manageable code. Our final implementation will take us from 36 lines of code, down to 1 ...</description>
    <pubDate>Sat, 13 May 2023 15:38:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>actionmailer</category><category>refactoring</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/seed-your-database-with-the-faker-gem</guid>
    <title>Seed your database with the Faker gem. Then seed 9.4x faster with upsert_all and activerecord-import.</title>
    <link>https://railsnotes.xyz/blog/seed-your-database-with-the-faker-gem</link>
    <description>We use the faker gem to seed our database with 10,000 fake posts. Then, we&#39;re going to speed up seeding by 9.4x, using either upsert_all or the activerecord-import gem.</description>
    <pubDate>Sat, 15 Jul 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>database</category><category>gem</category><category>faker</category><category>activerecord-import</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/simple-lazy-loading-hotwire-turbo-frames-rails</guid>
    <title>Simple Lazy Loading in Rails with Hotwire and Turbo Frames</title>
    <link>https://railsnotes.xyz/blog/simple-lazy-loading-hotwire-turbo-frames-rails</link>
    <description>Hotwire and Turbo Frames make it easy to add lazy-loading into our Rails apps — I&#39;m talking only 12 lines of code! Plus, we can use TailwindCSS to create a skeleton loader for our Turbo Frames.</description>
    <pubDate>Tue, 25 Jul 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>hotwire</category><category>tailwindcss</category><category>popular</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/simple-stimulus-tabs-controller</guid>
    <title>A simple Stimulus Tabs Controller</title>
    <link>https://railsnotes.xyz/blog/simple-stimulus-tabs-controller</link>
    <description>In this article, I share a handy Stimulus controller for adding tabs to your Rails apps. I also show you a different variation of the controller, and how to add it to your views. Plus, I&#39;ve included a handy tip to avoid the annoying &quot;flashing in&quot; effect that can happen if you&#39;re not careful.</description>
    <pubDate>Thu, 24 Aug 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>stimulus</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/skip-rails-console-with-rails-runner</guid>
    <title>Skip the console with Rails Runner</title>
    <link>https://railsnotes.xyz/blog/skip-rails-console-with-rails-runner</link>
    <description>If you&#39;re sick of typing rails console all day, or just want to learn about a cool Rails command, I&#39;ve got something that you&#39;re going to like — the rails runner command.</description>
    <pubDate>Fri, 04 Aug 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>tips</category><category>console</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/split-seeds-rb-by-rails-environment</guid>
    <title>Split your database seeds.rb by Rails environment</title>
    <link>https://railsnotes.xyz/blog/split-seeds-rb-by-rails-environment</link>
    <description>This method to split your database seeds by Rails environment is clean and simple, and is perfect to split up your `seeds.rb` file. It&#39;s a brilliant method! I just wish I&#39;d thought of it first 😅</description>
    <pubDate>Mon, 31 Jul 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>database</category><category>seeding</category><category>tips</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/the-simplest-ruby-on-rails-and-hotwire-app-possible-beginners-guide</guid>
    <title>Learn Hotwire by building the simplest possible Hotwire and Ruby on Rails app — a beginners guide.</title>
    <link>https://railsnotes.xyz/blog/the-simplest-ruby-on-rails-and-hotwire-app-possible-beginners-guide</link>
    <description>Most Rails apps probably don&#39;t need a React or Vue frontend. With a few lines of Rails and Hotwire magic, we can build a live frontend. That&#39;s what we&#39;re going to be doing today...</description>
    <pubDate>Fri, 26 May 2023 09:06:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>hotwire</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/vscode-rails-setup</guid>
    <title>A decent VS Code + Ruby on Rails setup</title>
    <link>https://railsnotes.xyz/blog/vscode-rails-setup</link>
    <description>Setting up VS Code for Ruby on Rails development can be tricky, so I wrote this article to help. In it, I share different VS Code extensions for things like autocomplete, linting, formatting and more! I&#39;ve even put together a handy extension pack to get you setup fast.</description>
    <pubDate>Tue, 20 Feb 2024 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>vscode</category><category>development</category>
  </item>

  <item>
    <guid>https://railsnotes.xyz/blog/your-first-stimulus-controller-learn-stimulus-ruby-on-rails-by-building-a-toggle-beginners-guide</guid>
    <title>Your first Stimulus Controller — Learn Stimulus in Ruby on Rails by building a toggle.</title>
    <link>https://railsnotes.xyz/blog/your-first-stimulus-controller-learn-stimulus-ruby-on-rails-by-building-a-toggle-beginners-guide</link>
    <description>So, you&#39;re new to Stimulus and want to try it out in your Ruby on Rails app. Or perhaps you just need a simple toggle pattern to follow. Either way, you&#39;re in the right place...</description>
    <pubDate>Sat, 24 Jun 2023 00:00:00 GMT</pubDate>
    <author>harrison@railsnotes.xyz (Harrison Broadbent)</author>
    <category>stimulus</category>
  </item>

    </channel>
  </rss>
