
Scopes are used to assign complex ActiveRecord queries into customized methods using Ruby on Rails.
Inside your models, you can define a scope as a new me...
4 comments
•9238 reads
This collection houses all things Ruby and Rails. We discuss the conventions, principles, patterns, and more that make up the vastly cool web-app framework.
Viewing articles within the Ruby on Rails collection
Scopes are used to assign complex ActiveRecord queries into customized methods using Ruby on Rails.
Inside your models, you can define a scope as a new me...
4 comments
•9238 reads
Ruby on Rails ships with form helpers based in Ruby out of the box. These helpers are helpful for dynamically generating HTML fields on forms that pertain to...
0 comments
•5589 reads
This is an updated guide for installing Tailwind CSS v2.0. Tailwind CSS just launched a new design and big update that includes fe...
6 comments
•10238 reads
When working with more complex associations in a Ruby on Rails app you may find yourself in an object chaining problem upon rendering data to a view or helpe...
0 comments
•5752 reads
Ruby on Rails ships with default error pages for more popular requests you might encounter including 404
, 500
, and 422
. Each request has an associated ...
6 comments
•20437 reads
While creating a new Rails app is already easy enough, customizing just how that app is created can get tedious as the number of options grows inside the Rub...
0 comments
•818 reads
Callbacks are methods that get called at certain moments of an object's life cycle. We can use callbacks as a means to manipulate objects further with built-...
0 comments
•8195 reads
Today, I'm excited to walk through a great JavaScript framework that has become popular in the Ruby on Rails community called [Stimulus.js](https://stimulusj...
3 comments
•4113 reads
In this guide, you'll learn how to install Tailwind CSS using Ruby on Rails
Looking for support for Tailwind CSS 2?
[Head here for an updated guide](...
8 comments
•20009 reads
I was recently asked to give an overview of how to add markdown support to a Ruby on Rails application. This guide will leverage a gem called [Redcarpet](htt...
0 comments
•6600 reads
The High Voltage gem is one of my favorite no-nonsense Ruby gems that gets you moving quickly when the need for...
0 comments
•1734 reads
There are thousands of Ruby gems out in the wild. I use many on almost every Ruby on Rails project I create. This is an impromptu list of some of my favorite...
1 comment
•2832 reads