rails

Getting the Lay of the Land in an Unfamiliar Project

You’ve just git-cloned a project you’ve never worked on before. How do you get oriented and situated? In this unrehearsed video, I talk about some of the first files and telltales I look for in an unfamiliar project, using the …

Devcontainer Portmapping

A web app devcontainer isn’t much good if you can’t see the app. Let’s talk about loopback addresses, interface binding, and port-mapping with docker-compose!

Caching Files in a Devcontainer

In a devcontainer, system files are ephemeral and subject to being reset any time the container is rebuilt. This can can be a problem for development package dependencies. In this video, we’ll learn a simple way to cache Ruby/Rails project gem packages across container rebuilds.

Rake Global Tasks

Rake isn’t just for running tests. You can use Rake to organize all your favorite development automation tasks across ALL your projects. Find out how, in this episode!

Robust Ruby

Get expert guidance on logging, failure management, and performance optimization in Ruby

lsof; or: what process is using my port?!

Have you ever gone to start a local development server, only to have it complain that the port is already taken? In this episode you’ll learn about how to use lsof utility to track down exactly which process is hogging a port.

StimulusJS

JS framworks are great for richly interactive client-side applications. But what if we just want to take a typical Rails app and spruce it up with a little bit of extra liveness? Join guest chef Chris Oliver to learn how StimulusJS can be applied to the HTML you already have, to add a touch of extra client-side richness.

Polymorphic Attributes in Rails – Part 2

Previously, guest chef Corey Haines joined us to talk about representing complex structured data with custom attribute types in Rails. Today, he returns to show us how to implement polymorphism for attributes that might take on one of several *different* data structures. Enjoy!

Polymorphic Attributes in Rails – Part 1

Sometimes model attributes need to have more structure than a simple string or number. In part 1 of a 2-part series on ActiveRecord polymorphic attributes, guest chef Corey Haines demonstrates how to represent complex attributes with custom types.