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

Get Notified by Email When Someone Comments on Your Website

As I was building out functionality of Railscoder and other projects I was working on, I realized that without checking each article every day, I would have no idea if someone commented, but more importantly, had a question about something that I could answer. So I needed... read more
July 5, 2020

Guide to Running Rails Apps With Dokku on Digital Ocean

In this article, I will go through the steps to successfully launch a rails app using a Digital Ocean droplet and Dokku. We all love Heroku and the way it works, but as convenient as Heroku is, it doesn't always make sense for freelancers and those of us who want to put a... read more
July 3, 2020

Setting up Pagination With Will_Paginate Gem

One of the few gems out there that make it easy for pagination is will_paginate. With the gem will_paginate, it's super easy to do, too. While there are a few other options for pagination (which will be covered soon), this is one of the easiest to get up and running. Fir... read more
June 28, 2020

Setting up Mailgun With Rails 6 Running on Dokku

After going through documentation and trying out several options to set up mailing services on Rails apps, I settled on Mailgun. While I don't need to send a ton of email, at least yet, the pricing wasn't my first priority provided the lowest tier was either free or nomin... read more
June 25, 2020

Action Text Attachments With Rails 6 and Amazon S3 in Production

I figured I would make a quick tutorial on this as I searched high and low for days to find a solution. If you're like me, you love the Trix (Action Text) editor for Rails. It's convenient, clean looking, and most importantly functional. It seems to have everything you ne... read more
June 24, 2020

Getting Google Analytics Up and Running With Rails 6

I have seen a number of different ways to do this with varying means of difficulty after looking at several other tutorials online, but this is the easiest way I could get Google Analytics working in a Rails 6 app using Turbolinks. I did borrow some of the information fro... read more
June 20, 2020

Adding a Favicon to Your Rails App

Need to add a favicon to your Rails site? It's super easy to do with Rails. Just make the image you would like to be your favicon. I would suggest a square png file. Then, upload the file to your app/assets/images folder. Next, add the code to display your favicon in... read more
June 20, 2020