<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Rails on MoskitoHero</title><link>https://moskitohero.com/tags/rails/</link><description>Recent content in Rails on MoskitoHero</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 06 May 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://moskitohero.com/tags/rails/index.xml" rel="self" type="application/rss+xml"/><item><title>An introduction to Barley, the fast model serializer</title><link>https://moskitohero.com/post/2025-05-06-an-introduction-to-barley-the-fast-model-serializer/</link><pubDate>Tue, 06 May 2025 00:00:00 +0000</pubDate><guid>https://moskitohero.com/post/2025-05-06-an-introduction-to-barley-the-fast-model-serializer/</guid><description>How I built and open-sourced Barley, a fast and simple model serializer gem for Rails, born from real-world performance needs and benchmarked against the best in the Ruby ecosystem.</description></item><item><title>Track and debug your ActiveRecord SQL queries with annotations</title><link>https://moskitohero.com/post/2024-12-10-annotating-sql-queries-for-debugging-purposes/</link><pubDate>Tue, 10 Dec 2024 00:00:00 +0000</pubDate><guid>https://moskitohero.com/post/2024-12-10-annotating-sql-queries-for-debugging-purposes/</guid><description>Embed contextual comments directly into your SQL queries using ActiveRecord’s annotate method, making log analysis and debugging far easier.</description></item><item><title>Lessons learned after migrating from Heroku to a kubernetes cluster</title><link>https://moskitohero.com/post/2021-02-20-lessons-learned-after-migrating-from-heroku-to-a-kubernetes-cluster/</link><pubDate>Sat, 20 Feb 2021 00:00:00 +0000</pubDate><guid>https://moskitohero.com/post/2021-02-20-lessons-learned-after-migrating-from-heroku-to-a-kubernetes-cluster/</guid><description>I recently migrated my company’s rails hosting from Heroku to a kubernetes cluster. It was a daunting task, but I learned a lot. Here are the lessons I learned, and how you can avoid the pitfalls I encountered.</description></item><item><title>An alternative to the ActiveRecord after_initialize callbacks</title><link>https://moskitohero.com/post/2020-10-08-an-alternative-to-the-activerecord-after-initialize-callbacks/</link><pubDate>Sat, 03 Oct 2020 00:23:33 +0000</pubDate><guid>https://moskitohero.com/post/2020-10-08-an-alternative-to-the-activerecord-after-initialize-callbacks/</guid><description>Avoiding the callback hell in Rails by creating a simple method in the model to initialize associated records.</description></item><item><title>Chaining conditions in regular expressions</title><link>https://moskitohero.com/post/2020-10-03-chaining-conditions-in-regular-expressions/</link><pubDate>Sat, 03 Oct 2020 00:23:33 +0000</pubDate><guid>https://moskitohero.com/post/2020-10-03-chaining-conditions-in-regular-expressions/</guid><description>Unleash the full power of regular expressions by chaining conditions together.</description></item><item><title>Prevent Devise from sending confirmation emails</title><link>https://moskitohero.com/post/2020-01-26-prevent-devise-from-sending-confirmation-emails/</link><pubDate>Sun, 26 Jan 2020 00:00:00 +0000</pubDate><guid>https://moskitohero.com/post/2020-01-26-prevent-devise-from-sending-confirmation-emails/</guid><description>When you need to import users into a new Rails app using Devise, you may want to skip sending confirmation emails. Here’s how to do it by overriding an instance method in the User model.</description></item></channel></rss>