Articles to write better Ruby on Rails code
Write Rails code you can be proud off. Whether you’re just starting out or have been shipping Rails apps for years, there’s always a new approach or pattern worth knowing about.
-
Nested forms without `accepts_nested_attributes_for` in Rails
-
Components in Rails without gems
-
Add a multi-step form/wizard to your Rails app
-
Rails dom_id helper without exposing the primary id
-
Recurring Calendar Events in Rails
-
Build a Notion-like editor with Rails
-
Multiple component variants with Tailwind
-
Rails link_to_if and link_to_unless
-
Free Icon Libraries for Rails Apps
-
Use Tailwind CSS with Your Rails Forms
-
Inline Unsupported Browser Warning (using Rails 7.2 feature)
-
Rails' Partial Features You (Didn't) Know
-
Use Action Cable with Your Main PostgreSQL Database
-
S3 Alternatives for Rails' ActiveStorage
-
Tidy up your Rails code with `inquiry`
-
Better Inline Validation for Rails Forms (with ViewComponent or partials)
-
Nested Layouts with Ruby on Rails
-
5 UI Components Libraries for Ruby on Rails (updated for 2025)
-
Create a String to Color Helper with Ruby
-
When to use `link_to` and `button_to` in Rails
-
How to add “Save and add another” feature to Rails apps
-
How to Create an Undo Action with Rails
-
How Layouts Work in Rails
-
How to disable Rails Form's `.field_with_errors`
-
Lesser Known Rails Helpers to Write Cleaner View Code
-
Inline SVG Icons in Your Rails App
-
Simple Preferences to Any Resource for Rails
-
How to Work with Forms inside Forms in Rails
-
Custom Meta Titles in Rails Apps: A Quick Guide
-
Conditionally Add CSS Classes to Your Views and Components
-
Favicons in Rails Apps (updated for 2025)