Rails Setup Script Improvements

Posted on January 15, 2022 - 3 Minute Read

Rails ships with a setup script that automates bootstrapping a new application, but did you know that you're free to edit this script? In…

Read More

Rails Authentication From Scratch

Posted on January 03, 2022 - 42 Minute Read

If you're like me then you probably take Devise for granted because you're too intimidated to roll your own authentication system. As…

Read More

Rails Remote Elements Tutorial

Posted on November 09, 2021 - 12 Minute Read

Do you need to create real-time features in your Rails app, but either can't use Turbo or don't want to use a front end framework like React…

Read More

Lazy Load Content in Rails from Scratch

Posted on October 16, 2021 - 8 Minute Read

Are certain pages on your Rails app loading slowly? You might want to consider loading those requests in the background. It's easier than…

Read More

Automatically Unsubscribe from Emails in Rails (and Control Email Preferences)

Posted on September 06, 2021 - 10 Minute Read

In this tutorial, I'll show you how to add a link to any Rails Mailer that will allow a user to automatically unsubscribe from that email…

Read More

Build an API in Rails with Authentication

Posted on July 30, 2021 - 16 Minute Read

Build an API in Rails with Authentication In this tutorial, we'll build a full-featured API in Rails with authentication. Below is what we…

Read More

Search Across Multiple Models in Rails

Posted on June 26, 2021 - 5 Minute Read

In this tutorial you'll learn how to search across multiple models in Rails. Below is a demo of what we'll be building. Note how both Post…

Read More

Use Pundit as a Rails Feature Flag System

Posted on June 21, 2021 - 5 Minute Read

In this tutorial, I'll show you how to create a feature flag system in Rails using pundit and a column on the table. Step 1: Initial Setup…

Read More

Real-time Form Validation in Ruby on Rails

Posted on May 08, 2021 - 7 Minute Read

Learn how to validate a form in real-time while conditionally preventing it from being submitted. demo Step 1: Initial Set Up Step 2: Add…

Read More

Create an infinite scrolling blog roll in Rails with Hotwire

Posted on March 21, 2021 - 6 Minute Read

In this tutorial, I'll show you how to add an infinitely scrolling blog roll using Rails and Hotwire. Note that this is different than Chris…

Read More

Generate Link Previews in Rails with Microlink

Posted on February 23, 2021 - 8 Minute Read

In this tutorial I'll show you how to leverage the Microlink API to generate link previews in Ruby on Rails. Demo Step 1: Application Set…

Read More

Auto Save Form Data in Rails

Posted on January 31, 2021 - 6 Minute Read

In this tutorial I'm going to show you how to automatically save form data in Rails. Instead of saving a draft to the database, we'll simply…

Read More

Easily find elements with XPath in Capybara by using Chrome's Dev Tools

Posted on July 31, 2020 - 1 Minute Read

Imagine you have multiple identical elements on a page and that you need to select a specific element during a system test. If your test…

Read More

Install Bootstrap 4 on a Rails 6 App with Webpacker

Posted on July 30, 2020 - 4 Minute Read

I know many existing tutorials explain how to install Bootstrap 4 on a Rails 6 application with Webpacker (like the GoRails example…

Read More

Configure Travis CI for Ruby on Rails

Posted on June 10, 2020 - 4 Minute Read

In this tutorial I am going to show you how to configure Travis CI to run your Rails' test suite and system tests everytime you push a new…

Read More

Developers: Use Your Platform To Start a Discussion

Posted on June 08, 2020 - 2 Minute Read

I am uncomfortable talking about polarizing topics, even when I agree with the majority. I steer away from political discussions because…

Read More

Add Tailwind CSS Color Palette to Bootstrap

Posted on April 27, 2020 - 2 Minute Read

You might be wondering why anyone would want to add Tailwind's default color palette to Bootstrap. It comes down to personal preference, but…

Read More

PaperTrail Gem Tutorial

Posted on April 20, 2020 - 22 Minute Read

Introduction In this tutorial I am going to show you how to revert and restore records using the PaperTrail Gem. Reverting Old Versions…

Read More

Obfuscate Numerical IDs in Rails

Posted on March 22, 2020 - 3 Minute Read

By default, Rails displays the record's in the URL (e.g. ). Although there is nothing inherently wrong with this approach, sometimes it's…

Read More

How to Deploy a Sage Theme to WP Engine

Posted on March 10, 2020 - 4 Minute Read

Sage is WordPress starter theme with a modern development workflow. However, deploying a Sage theme can be difficult because of its…

Read More

Ruby on Rails with React Tutorial

Posted on February 21, 2020 - 70 Minute Read

Introduction Many Rails+React tutorials demonstrate how to create an API only application using Rails, and then create a separate front-end…

Read More

In Defense of WordPress

Posted on January 26, 2020 - 3 Minute Read

WordPress is said to power 35% of the internet, yet it seems to get a lot of criticism amongst developers. I’ve been developing with…

Read More

Why I'm Using Bootstrap In 2020

Posted on January 02, 2020 - 6 Minute Read

I recently needed to redevelop our agency's website. We moved from Drupal to Jekyll in an effort to keep things simple. However, we didn't…

Read More

Forestry CMS Snippets Demo

Posted on November 25, 2019 - 1 Minute Read

Snippets in Forestry are pre-defined chunks of text that can be inserted into your content. Think of them like WordPress Shortcodes. In this…

Read More

Forestry CMS Blocks Field Demo

Posted on November 17, 2019 - 8 Minute Read

Foresty CMS allows content editors to easily manage a staticly generated site without needing to know markdown or HTML. This works really…

Read More

Create a Nested Form in Rails from Scratch

Posted on November 10, 2019 - 5 Minute Read

The Rails Guides give a great example of how to create nested forms. However, Rails does not support adding fields on the fly out of the box…

Read More

Redirect a Parent Page to its Child in WordPress

Posted on November 02, 2019 - 2 Minute Read

Sometimes you need to redirect a parent page to its child page, especially if you need to keep a specific type of menu hierarchy. There are…

Read More

Add a Featured Image to the Events Calendar Month, List and Day Views in WordPress

Posted on October 28, 2019 - 1 Minute Read

By default, WordPress allows you to assign a featured image to a page or post. However, if you're using The Events Calendar, you'll notice…

Read More

Rails Ajax Examples (Without jQuery)

Posted on October 26, 2019 - 3 Minute Read

Introduction Rails ships with turbolinks which: automatically fetches the page, swaps in its , and merges its , all without incurring the…

Read More

Create a Bootstrap Starter Theme in Eleventy

Posted on October 05, 2019 - 11 Minute Read

With the rise in the JAMStack way of thinking, there has been a lot of development in static site generators. One that is quickly gaining…

Read More

Why I Think Rails is Still Relevant in 2019

Posted on August 27, 2019 - 6 Minute Read

There is currently a high demand for Javascript developers, which in turn dictates the content and curriculum of many tutorials, articles…

Read More

Create Dependent Associations in FactoryBot

Posted on August 14, 2019 - 2 Minute Read

Imagine the following set of models and relationships: A can add a to a . The has a , and that has a which depends upon the . So I…

Read More

Use a Custom Column Name With a belongs_to Association in Rails

Posted on August 12, 2019 - 2 Minute Read

Imagine an application with the following relationships: A model which through a join table. A model which through a join table. A…

Read More

Working with Radio Buttons in Netlify and Gatsby

Posted on June 23, 2019 - 1 Minute Read

I recently ran into an issue with Netlify form submissions on a Gatsby site. Specifically, it had to do with a group of radio buttons. I was…

Read More

Pro Tip: Use the esc_attr Function to Format alt Tags When Using ACF

Posted on June 13, 2019 - 1 Minute Read

Intro Originally this article recommended using the htmlentities function. However, after a lot of helpful feedback, I've learned it's best…

Read More

Learning WordPress as a Drupal Developer

Posted on May 31, 2019 - 8 Minute Read

I started my career in web development by using Drupal 7 on every project. I just assumed that WordPress could not meet my needs, and that…

Read More

Unpopular Opinion: WordPress Should Be the First Choice When Building a Website That Won't Be Maintained by a Developer or Agency

Posted on May 20, 2019 - 6 Minute Read

I know this article seems like clickbait, so let me try and explain myself before I lose you. In order to understand my viewpoint, it helps…

Read More

Seven Easy Wins Before Launching Any Website

Posted on May 19, 2019 - 6 Minute Read

I work for an agency that specializes in developing small to medium sized websites. Over the years I've found that I follow the same process…

Read More

Create a Bootstrap Theme for WordPress

Posted on May 05, 2019 - 15 Minute Read

In this tutorial I will show you how to create a Bootstrap theme for WordPress. If you just want the finished product, feel free to download…

Read More

Create a Lead Generation Form on Netlify

Posted on April 08, 2019 - 3 Minute Read

I recently needed to help a client create lead generation forms on their website. The website was already in development, and was completely…

Read More

WordPress ACF Frontend Form Tutorial (With Email Notifications)

Posted on March 31, 2019 - 12 Minute Read

In this tutorial I'm going to show you how to create a frontend form for a custom post type that anonymous users can fill out. As an added…

Read More

Modern WordPress Theme Development in 2019

Posted on March 24, 2019 - 16 Minute Read

In this article I'm going to show you my personal and opinionated WordPress theme development workflow. The goal of this article is to…

Read More

Create a Custom Search Form in WordPress

Posted on January 21, 2019 - 14 Minute Read

In this tutorial we are going to create a custom search form in WordPress. Specifically, we are going to add a custom search form on the…

Read More

Create a Proximity Search in WordPress

Posted on January 12, 2019 - 20 Minute Read

In this tutorial we are going to build a store locator using a proximity search. Below is the final result. WordPress proximity search…

Read More

Use Dashicons to Create a Social Media Menu in WordPress

Posted on November 27, 2018 - 3 Minute Read

There are plenty of plugins that allow you to add social media icons to your WordPress site. However, I always advocate avoiding plugins in…

Read More

Configure RSpec and Capybara with Ruby on Rails

Posted on November 25, 2018 - 6 Minute Read

In this tutorial I'm going to show you how to configure your Rails app to use RSpec and Capaybara. In addition, we will also install and…

Read More

Convert a belongs_to Association to a has_many :through Association in Ruby on Rails

Posted on November 22, 2018 - 7 Minute Read

I was tasked with converting a association to a association. The challenge was that the app was live, and there were existing…

Read More

Configure Cloudflare DNS to Work with Netlify

Posted on November 21, 2018 - 1 Minute Read

I just migrated my site to Netlify but wanted to keep my DNS with Cloudflare. Below are the steps needed to configure Cloudflare DNS to Work…

Read More

Redirect Domain Aliases to Your Primary Domain With Gatsby and Netlify

Posted on November 19, 2018 - 4 Minute Read

I recently redeveloped my website using Gatsby, and moved my hosting to Netlify. As part of the launch I wanted to redirect all requests…

Read More

Customize a Video Thumbnail in Drupal

Posted on July 23, 2016 - 5 Minute Read

Introduction and Requirements When you upload a video to Drupal from YouTube or Vimeo, an automatically generated thumbnail will be created…

Read More

Dynamically Link to Each Month In Drupal's Calendar

Posted on June 22, 2016 - 5 Minute Read

Introduction and Requirements Drupal's Calendar module allows you to page between months. However, it can be frustrating for a user to have…

Read More

Batch Upload Field Collection Items to Create an Image Gallery

Posted on June 13, 2016 - 6 Minute Read

Introduction and Requirements Let's say you want to create an image gallery on your site. Let's say that each image also needs a caption and…

Read More

Dynamically Control FlexSlider Caption Position and Color in Drupal

Posted on May 21, 2016 - 5 Minute Read

Introduction and Requirements Drupal's Flex Slider module allows site builders to add rotating slides with captions. Using custom CSS, site…

Read More

Display a Calendar On Taxonomy Pages In Drupal

Posted on May 14, 2016 - 5 Minute Read

Introduction and Requirements Let's say you have a content type with a date field and term reference field. This content type could be…

Read More

Create a List Tab For Drupal Calendar

Posted on April 27, 2016 - 4 Minute Read

Introduction and Requirements Drupal's Calendar module allows an easy way for site builders to display events in a month, week day and year…

Read More

Configure Drupal's Search API to Search Field Collections and Paragraphs

Posted on April 03, 2016 - 4 Minute Read

Intro This tutorial will assume that you are somewhat familiar with the Search API module. It also assumes you are using the Search API with…

Read More

Drupal Configure SMTP Module to Work with Gmail [Updated]

Posted on March 21, 2016 - 3 Minute Read

At this point, there have been many great tutorials written about configuring Drupal's SMTP Authentication Support with Gmail. However…

Read More

Correctly Display Repeating Dates In Drupal

Posted on February 16, 2016 - 6 Minute Read

Configure Site Date and Time Navigate to admin/config/regional/date-time Enable The Necessary Modules Date Date All Day Date API Date Popup…

Read More

Update Drupal Field Settings For Fields With Data In Database

Posted on February 12, 2016 - 6 Minute Read

Sometimes you need to edit a field's configuration once there is already data store in the database for this field. If you try to do this…

Read More

Install Drupal Memcached on a Media Temple DV Server

Posted on December 06, 2015 - 5 Minute Read

Site performance is crucial to a good user experience, and also is a factor in SEO. Because Drupal sites can be very query heavy at times…

Read More

Drupal Salesforce Not Updating Records [Solved]

Posted on December 05, 2015 - 3 Minute Read

OK, so you've integrated your Drupal install with Salesforce and are able to pull data from Salesforce into Drupal. Everything's working…

Read More

Display Field Values in an Accordion In Drupal

Posted on November 27, 2015 - 5 Minute Read

You probably already know that Drupal offers Views Accordion to display content in jQuery Accordions. This is fine if you're looking to…

Read More

Make URL Patterns Match Menu Position in Drupal

Posted on November 24, 2015 - 2 Minute Read

Drupal's Pathauto is a must have for any Drupal project. This tutorial will demonstrate a simple yet effective way to utilize Pathauto to…

Read More

Pulling Data From Salesforce Into Drupal

Posted on November 19, 2015 - 7 Minute Read

In my last tutorial, we integrated Salesforce with a local Drupal installation. In this tutorial, we will continue to build off from what we…

Read More

Integrate Salesforce With Local Drupal Installation

Posted on November 07, 2015 - 5 Minute Read

Salesforce is one of the most popular CRMs used today. In this tutorial we will integrate Salesforce with a local Drupal install in order to…

Read More

Drupal Leaflet Not Working [Solved]

Posted on October 29, 2015 - 5 Minute Read

The Leaflet Module for Drupal is probably the most popular mapping module. I was recently working on a project where I was mapping locations…

Read More

Create Live Search Results (Search as You Type) in Drupal

Posted on October 22, 2015 - 7 Minute Read

By default, Drupal offers the ability to search the site with its core Search module. However, this module can be limiting. In this…

Read More

Track Link Clicks In Drupal

Posted on October 02, 2015 - 4 Minute Read

You might be wondering why you would need to track the number of times a link is clicked in Drupal, when this can be done using Google…

Read More

Move a Block to a Different Region on Mobile Layouts in Drupal

Posted on September 19, 2015 - 6 Minute Read

Thanks to CSS3 Media Queries web developers can create a completely different layout for their websites when viewed on small screens. Drupal…

Read More

Create a Reddit Style Website In Drupal

Posted on September 08, 2015 - 8 Minute Read

Sites that allow users to post and vote on content such as Reddit and Digg are hugely successful. In this tutorial we are going to create a…

Read More

Bulk Update Redirects After Changing URL Pattern in Drupal

Posted on August 15, 2015 - 2 Minute Read

I recently worked on a project where the site's URL structure was going to change. This is easy to do with Pathauto, but I wanted to ensure…

Read More

Drag and Drop Batch Upload Files In Drupal

Posted on July 16, 2015 - 3 Minute Read

I love Drupal, but its media handling is far from ideal. Out of the box, it pales in comparison to WordPress. Most notably, Drupal does not…

Read More

Load Content In Drupal Via AJAX (Without Coding)

Posted on July 12, 2015 - 4 Minute Read

Loading content via Ajax can create a great user experience. Instead of loading a totally new page, the desired content is loaded on the…

Read More

Drupal Smartqueue Taxonomy Tutorial

Posted on July 07, 2015 - 5 Minute Read

Drupal allows you to organize content into taxonomies. This is best illustrated in tagging content, similar to Twitter. Drupal then…

Read More

Drupal FlexSlider with Carousel Controls

Posted on May 30, 2015 - 5 Minute Read

Drupal's FlexSlider module allows for creation of responsive image sliders and carousels. This is perfect for creating banner slideshows, or…

Read More

Linking to Content In Drupal

Posted on May 28, 2015 - 4 Minute Read

If you're using the Pathauto Module, you know that you can create custom path patterns for nodes, taxonomies and users. This is great for…

Read More

Install Drupal with drush

Posted on April 14, 2015 - 2 Minute Read

Last week I wrote an article about how to use the command line. Now we're going to put this knowledge to use. Using drush you can set up a…

Read More

How to Easily Change Directories In Terminal

Posted on April 11, 2015 - 1 Minute Read

I used to be terrified of the command line terminal. I'm a visual learner, and the command line is the exact opposite of visual. Plus, I'm a…

Read More

Auto Update Copyright In Drupal Footer

Posted on April 08, 2015 - 1 Minute Read

Most websites have a copyright in the footer, like ©2015. However, if you do this using static text, you'll need to be sure to update this…

Read More

Using Feature Detection to Drop Support for Older Browsers

Posted on April 03, 2015 - 2 Minute Read

EDIT This is an old article, and the recomendations are no longer best practice. A lot of people are familiar with conditional classes…

Read More

Drupal Unable to send e-mail on BlueHost Server

Posted on March 17, 2015 - 2 Minute Read

With the launch of this new site, I encountered a very frustrating error. Drupal was unable to send emails, and I was receiving the…

Read More

5 Drupal Modules You Should Start Using

Posted on March 14, 2015 - 3 Minute Read

Every Drupal developer knows about the heavy hitters like views, display suite and context. However, this is a list of 5 Drupal Modules that…

Read More