Back to content
All RAILS
Ruby on Rails Cloudflare Turnstile Tutorial
Stop bot signups in Rails with Cloudflare Turnstile. Step-by-step setup with Devise, Stimulus, Turbo, and a verifier model - keep your email authority clean.
Creating Your First Rails Engine
Build a mountable Rails engine and ship a real gem to rubygems.org. Step-by-step walkthrough using a literal_enum example, with concerns, dummy app, and tests.
Design Patterns in Rails
When and how to use Singleton, Factory, and other design patterns in Rails. Concrete examples, anti-patterns to avoid, and a rule of thumb for overuse.
Ruby on Rails and the Art of Object-Oriented Design
Rails' conventions guide you toward design patterns, but real maintainability comes from applying SRP, delegation, and SQL-first thinking from day one.
Redesign Your Models for Performance in Rails
Most performance issues come from over-normalized models. Learn how scopes, denormalization, and JSON columns simplify queries and remove painful joins.
Rails Migration Best Practices
Three rules that save you from broken deploys: never modify a committed up method, never call models from migrations, and always provide a reversible down.
Rails ORM Performance Best Practices
ActiveRecord makes it easy to ship slow code. Leverage SQL for sorting, filtering, and aggregation - and fix N+1 queries with includes - to keep Rails apps fast.
Testing Gems and Plugins: Best Practices in Ruby on Rails
Four ways to test Rails gems and plugins - pure Ruby, partial Rails, embedded apps - and why 90% of Rails devs have never shipped one.
Best Practices for Managing Gems in Your Rails Application
Screen gems with the TAM method, modify safely via monkey patches or forks, and keep your Gemfile lean - the rules pros use to keep Rails apps healthy.