RSS.Social

Boring Rails: Skip the bullshit and ship fast |

follow: @[email protected]

Posts

Hotwire components that refresh themselves

Event sourcing for smooth brains: building a basic event-driven system in Rails

Writing better Action Mailers: Revisiting a core Rails concept

Sorting ActiveRecord results by enum values (in SQL)

Thinking in Hotwire: Progressive Enhancement

Galaxy brain CSS tricks with Hotwire and Rails

Adding keyboard shortcuts and hotkeys to StimulusJS

The most underrated Rails helper: dom_id

Self-destructing StimulusJS controllers

Tailwind style CSS transitions with StimulusJS

Dynamic user content in Rails with Liquid tags

Accessing Rails environment variables from a StimulusJS Controller

Rails validations: database level check constraints

Debugging slow Heroku builds

Quickly explore your data with `uniq` and `tally`

Improving your Rails mailers with `email_address_with_name`

Building lightweight components with Rails Helpers and Stimulus

Combine `redirect_to` and the `anchor` option

Lazy-loading content with Turbo Frames and skeleton loader

Building a Rails CI pipeline with GitHub Actions

Use `to_sql` to see what query ActiveRecord will generate

Prefer returning chainable ActiveRecord objects

Rails validations: unique within a certain scope

Boring breadcrumbs for Rails

Sharing common code between Rails controllers with `Scoped` pattern

Run different ActiveRecord validations based on context

Find records missing an association with `where.missing`

Testing multiple sessions in the same test with Capybara

Pluck single values out of ActiveRecord models or Enumerables

Never mix up greater/less than when comparing dates again

Super readable String operations with `delete_prefix` and `delete_suffix`

Setting CSS classes in Markdown with Jekyll / Bridgetown

Use Heroku Dataclips to share query and do ad-hoc data exports

Ensure required environment variables are set when booting up Rails

Search and debug gems with `bundle open`

Automatically cast params with the Rails Attributes API

Show relevant chunks of text with Rails `excerpt` helper

Use Rails `link_to_unless_current` for navigation links

Use Rails `cycle` to avoid `i % 2 == 0` in your view loops

Use the Rails helper `highlight` when showing search results

Magic Responsive Tables with Stimulus and IntersectionObserver

Hacktoberfest Recap: Open source Ruby/Rails work in 2020

Building GitHub-style Hovercards with StimulusJS and HTML-over-the-wire

Writing better StimulusJS controllers

Feature Flags: The stupid simple way to de-stress production releases

Spring Cleaning: Tidying up your codebase

Wrangling slow reports, large file exports, and long-running tasks in Rails with Active Job

Managing Rails schema and data migrations without losing your mind