RSSAmplifier

Blog

Beautiful Ruby

Learn Ruby the Beautiful Way

beautifulruby.comRSS feed ↗51 posts

Latest posts

A Ruby Timeout that works

TCP_USER_TIMEOUT, exposed to Ruby

HLS

Shipping video should be as easy as shipping a model.

Put the timeout on the connection

Timeout.timeout wraps your code. The syscall doesn't care.

Give Your Agents a REPL

Expose IRB over a Unix socket so coding agents can introspect and control a running Rails app

Hotswap

Replace a SQLite database on a running Rails server without restarting

Enclave

An MRuby sandbox for running arbitrary Ruby code from LLMs

Framework Detection

Using Ruby modules as singleton objects without extend self

Don't throw the specs out with the factories

FixtureBot gives you the speed of fixtures with the syntax of factories

Superfeature Plan

A Ruby DSL for defining SaaS pricing plans and features

Superfeature Price

A Ruby object for working with prices and discounts

Adding form errors to Superform fields

Display validation errors with any CSS framework

Fizzy SaaS & the mysterious Queen Bee

I walk through the source code of the latest Rails application open-sourced by 37 Signals

37 Signals Fizzy Kanban board

I walk through the source code of the latest Rails application open-sourced by 37 Signals

2025 Ruby Cyber Monday & Black Friday Deals

Save money on Ruby books, courses, licenses, & software

Beautiful Ruby: The First Update

Pre-sold $13,000 of Phlex on Rails video course

Introducing Phlex on Rails

Officially launching a video course for building component-based UIs in Rails

Markdown Image Tags as YouTube and Embed Blocks

Abuse markdown image tags to easily embed YouTube videos and embedded resources in documents

How I created the Phlex on Rails video course outside

An off-the-grid dev setup & recording studio that fits in a backpack

Phlex on Rails: Week Twelve Update

Videos have been shot & registration is live

Supermail mailto links

Start more conversations with your users over email

Introducing Supermail

An easier way to work with emails in Rails.

Phlex on Rails: Week Eleven Update

Hotwire, Stimulus, Turbo, and Rails World

Superform 0.6.x released

Field Kits, Concise ERB rendering, Strong Parameters, Phlex 2.0, and HTML5 inputs

Phlex HTML Elements

How elements are defined in the Phlex library

Phlex on Rails: Week Ten Update

Superform updates & videos released, Github talk, and mechanical keyboards

Phlex on Rails: Week Nine Update

Existing Rails Apps unit complete and gem updates

Render Phlex Components from Rails Console

A handy way to render & debug basic components in isolation

Phlex on Rails: Week Eight Update

Finished Existing Rails app unit and published course source code

Phlex on Rails: Week Seven Update

One unit complete, six more to go, and the end of summer

Service Objects

Not your average method masquerading as a class behind a #call method

Phlex on Rails: Week Six Update

Video quality, a Rails 8 upgrade, and HTTP Live Streaming

Simple Phlex Class Variants

Create 10's of components with slight variations in their class names

Phlex Kits in Erb

Write less code to render Phlex components from Erb templates

Superform vs Rails form helpers: complex select tags with groups

Get precise control over select and option tags with Superform

Superform vs Rails form helpers: simple select tags

More control over select and option tags with Superform

Phlex on Rails: Week Five Update

Getting started with videos, workflow, and finalizing scripts

Phlex on Rails: Week Four Update

Rough draft complete, demo apps, and videos are coming soon

Phlex Turbo Layouts

Turbo Layouts in Phlex

Phlex appends strings

Understanding how Phlex handles string concatenation

Phlex on Rails: Week Three Update

More content updates, a toy project, and an upcoming holiday week

How I "Service Object"

Where I put business logic in a Rails application

PhlexML

Build content pages with Phlex

Phlex on Rails: Week Two Update

Packages for companies, scholarships, and a few more sections are drafted

Don't blame your users' browser

Restricting websites to modern browsers can cause headaches

Phlex on Rails: Week One Update

Drafting the beginning, ending, a few things in the middle and working on plumbing

Content Paywall

A stack of components and parsers to protect locked content

Turbo SwiftUI

A dream that might be coming true

A Phlex table abstraction

HTML table and hyperlink abstractions built with Phlex, Superview, and Superlink

Markdown Referral Code

Automatically inject referral codes into markdown content

Phlex Kits

A collection of Phlex components and utilities