About:

Harrison Broadbent writes RailsNotes to teach Ruby on Rails, sharing knowledge gained since 2017.

Website:

Specializations:

Interests:

Ruby on Rails Teaching Software development

Outgoing Links:

Andy Croll
Subscribe to RSS:
This article explains how to run RSpec test suites in parallel using the parallel_rspec gem, achieving a speedup of 2x-4x. It details the setup process, benchmarks the performance of parallel testing compared to vanilla RSpec, and...
The text is a guide on how to use the Ahoy gem to track user interactions with features in a Rails app. It explains how to add Ahoy to the app, track controller actions with Ahoy events, and query the events to gather data. The ar...
The text is a detailed exploration of the Blazer gem, which is used to query data from Ruby on Rails apps. It discusses the features of Blazer, including querying, building dashboards, and running checks. The author shares their p...
The article provides tips and best practices for web scraping with Ruby and Ferrum, a headless browser driver. It covers setting up Ferrum, browser headers, hiding 'AutomationControlled', adding the puppeteer-extra-stealth plugin,...
The article explains how to use VS Code's 'Run and Debug' panel to connect directly to a debugger instance using the VSCode rdbg Ruby Debugger extension. It provides a step-by-step guide to setting up VS Code rdbg, quick tips for ...
The article provides a guide on setting up VS Code for Ruby on Rails development, including the use of language servers, LSP integrations, linters and formatters, and debuggers. The author also offers an extension pack for easy in...
The article provides a detailed overview of the upcoming features in Rails 8. It covers the inclusion of Solid Queue, Solid Cache, and Kamal as defaults, better support for PWAs, an official LSP, an authentication generator, impro...
The text is a quick guide on how to use VS Code to edit secrets in Rails apps when running rails credentials:edit. It includes a handy script to streamline the process and explains how to use VS Code to edit Rails credentials. The...
The article explains how to attach files to emails using ActionMailer in Ruby on Rails. It covers attaching single or multiple files, setting custom encodings, and attaching images as inline attachments. It also provides examples ...
The text provides tips for writing ViewComponents in Rails, including organizing components with namespaces, tweaking Zeitwerk for perfect namespaces, using inline templates, taking advantage of #before_render, dropping the _compo...
The article discusses the differences between system specs and feature specs in RSpec and Rails, and provides a guide on how to refactor feature specs to system specs. It also includes a comparison of the two types of specs, and e...
The text explains how to build a dynamic nav in a Ruby on Rails app using the current_page? and class_names helper methods. It provides an example of how to style the nav differently based on the page being visited. The current_pa...
The text provides a quick guide on how to add a favicon to a Ruby on Rails app using the asset path and favicon_link_tag. It explains the process and the benefits of using Rails helpers for this task.
The text is a tutorial on how to use a Stimulus controller to handle tabs in a Ruby on Rails app. It provides code and instructions on how to use the tabs_controller.js, how to edit it, and how to connect it to HTML. The author al...
The article discusses different methods for previewing emails in Ruby on Rails, including ActionMailer's native mailer previews, the letter_opener gem, MailCatcher, and MailHog. It provides a detailed comparison of each method, th...
The text is about the rails runner command in Ruby on Rails, which allows running commands inside the Rails console directly from the terminal. It explains how to run single commands, scripts, and commands in different environment...
The article discusses the importance of splitting the seeds.rb file in a Ruby on Rails app into 3 separate files, one for each Rails environment. It explains the benefits of doing so and provides a step-by-step guide on how to ach...
Overmind is a Procfile manager that is deeply customizable and integrates with tmux. It is more advanced than foreman and bin/dev, allowing you to run multiple processes simultaneously, connect to running processes, stop and resta...
The text explains how to add lazy loading to a Ruby on Rails app using Hotwire and Turbo Frames. It provides a step-by-step guide and code examples for adding lazy loading and creating a skeleton loader using TailwindCSS.
The article covers using the faker gem in a Rails app to seed 10,000 fake records, fixing slow seeds by making them 9.4x faster using upsert_all or the activerecord-import gem, and splitting the database seeds into 3 separate file...
This article is a handy reference for generating migrations in Ruby on Rails apps. It includes a table of contents for quick navigation and covers creating a table, referencing another table, adding a column, removing a column, re...
The article covers the basics of installing Redis and Sidekiq, and then adding them to a Ruby on Rails app. It provides a step-by-step guide for installing Redis and Sidekiq, running them locally, and using the Procfile.dev file. ...
The article explains how bin/dev and Procfile.dev work together in Ruby on Rails 7 development. It also provides insights into running Redis and a Sidekiq worker locally, and some tricks for using foreman and bin/dev.