Rails Setup Script Improvements
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 MoreRails 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 MoreIf you're like me then you probably take Devise for granted because you're too intimidated to roll your own authentication system. As…
Read MoreDo 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 MoreAre certain pages on your Rails app loading slowly? You might want to consider loading those requests in the background. It's easier than…
Read MoreIn 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 MoreBuild 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 MoreIn 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 MoreIn 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 MoreLearn 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 MoreIn 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 MoreIn 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 MoreIn 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 MoreImagine 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 MoreI know many existing tutorials explain how to install Bootstrap 4 on a Rails 6 application with Webpacker (like the GoRails example…
Read MoreIn 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 MoreIntroduction In this tutorial I am going to show you how to revert and restore records using the PaperTrail Gem. Reverting Old Versions…
Read MoreBy default, Rails displays the record's in the URL (e.g. ). Although there is nothing inherently wrong with this approach, sometimes it's…
Read MoreIntroduction Many Rails+React tutorials demonstrate how to create an API only application using Rails, and then create a separate front-end…
Read MoreThe 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 MoreIntroduction Rails ships with turbolinks which: automatically fetches the page, swaps in its , and merges its , all without incurring the…
Read MoreThere is currently a high demand for Javascript developers, which in turn dictates the content and curriculum of many tutorials, articles…
Read MoreImagine 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 MoreImagine an application with the following relationships: A model which through a join table. A model which through a join table. A…
Read MoreIn 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 MoreI was tasked with converting a association to a association. The challenge was that the app was live, and there were existing…
Read More