Using Pagy Gem for Pagination in Rails App

On a previous article, I showcased the Will_Paginate Gem. But since then, several other pagination gems have come about like Kaminari and now Pagy. But what makes Pagy especially a compelling choice to use is its superior performance and lower overall footprint. For a bre... read more
October 23, 2021

Adding JQuery to Your Rails 6 App

In this quick tutorial, we will run down how to add JQeury to a Rails 6 app. Rails 6 has seen many improvements and one of them is that webpacker is the default engine to deploy many of the add on services and libraries in a Rails app, like JQuery. Add JQuery Via Yarn ... read more
September 17, 2020

Changing Data Column Type in Rails App to Integer From String

Sometimes you start building your app and the easiest thing is to build out your models using the string type, which becomes VARCHAR in SQL speak. But then as you start coding, you realize it would be better to have some of those columns as integers. That's what happened ... read more
August 10, 2020

Adding Tailwind CSS to Rails 6 Project

I have just started really exploring Tailwind CSS and so far, love just how customizable things are. In contrast, with Bootstrap or any other framework, you would likely need to write several custom classes to get what you want. But even the default setup for Tailwind pro... read more
July 25, 2020

How to Solve Error When Updating Oh My Zsh

This will hopefully help folks that use zsh and Oh My Zsh like myself. After getting the prompt when opening iTerm2, or whatever terminal program you're using, you may see this: [Oh My Zsh] Would you like to update? [Y/n]: Which of course you type "Y", hit enter and hop... read more
July 19, 2020

Adding Open Graph Meta Data to Your Rails App

If you're looking for a way to add the necessary Open Graph meta data to your Rails app, here's a quick example and tutorial to help you. Why is it important? Well one, if you plan on posting links to your content on a Facebook page, the only way Facebook gets things su... read more
July 19, 2020

Learn Rails or up Your Game With Hello Rails!

There's a ton of great resources out in the world to help you learn Ruby on Rails but sometimes, it just makes sense to pay for a course or subscription that will truly elevate your skills and understanding of not just the framework but of the entire web app experience. T... read more
July 10, 2020

Postgres Cheat Sheet for Dokku

If you're using the Postgres plugin with your Dokku server, such as on Digital Ocean, you may find yourself from time to time needing to export and import data. Just recently, I went through an issue where I needed to spin up a completely new server to fix another issue a... read more
July 5, 2020