DEV Community

matt swanson profile picture

matt swanson

Full-stack product engineer with 10 years experience building web applications. Keep it boring.

Location Indianapolis, IN Joined Joined on  Personal website https://boringrails.com github website twitter website

Education

Purdue

Work

Product Engineer at Arrows

The most underrated Rails helper: dom_id

The most underrated Rails helper: dom_id

Reactions 6 Comments
4 min read
Self-destructing StimulusJS controllers

Self-destructing StimulusJS controllers

Reactions 10 Comments
3 min read
Tailwind style CSS transitions with StimulusJS

Tailwind style CSS transitions with StimulusJS

Reactions 36 Comments
9 min read
Ordinalize: Adding "-st", "-nd", "-rd", "-th" to dates

Ordinalize: Adding "-st", "-nd", "-rd", "-th" to dates

Reactions 8 Comments
1 min read
Debugging slow Heroku builds

Debugging slow Heroku builds

Reactions 4 Comments
4 min read
Quickly explore your data with `uniq` and `tally`

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

Reactions 12 Comments
1 min read
Improving your Rails mailers with `email_address_with_name`

Improving your Rails mailers with `email_address_with_name`

Reactions 19 Comments 2
1 min read
Building lightweight components with Rails Helpers and Stimulus

Building lightweight components with Rails Helpers and Stimulus

Reactions 14 Comments
2 min read
Combine `redirect_to` and the `anchor` option

Combine `redirect_to` and the `anchor` option

Reactions 9 Comments
2 min read
Lazy-loading content with Turbo Frames and skeleton loader

Lazy-loading content with Turbo Frames and skeleton loader

Reactions 19 Comments
3 min read
Use `to_sql` to see what query ActiveRecord will generate

Use `to_sql` to see what query ActiveRecord will generate

Reactions 9 Comments
2 min read
Prefer returning chainable ActiveRecord objects

Prefer returning chainable ActiveRecord objects

Reactions 15 Comments 2
2 min read
Rails validations: unique within a certain scope

Rails validations: unique within a certain scope

Reactions 10 Comments
2 min read
Boring breadcrumbs for Rails

Boring breadcrumbs for Rails

Reactions 8 Comments
2 min read
Sharing common code between Rails controllers with `Scoped` pattern

Sharing common code between Rails controllers with `Scoped` pattern

Reactions 15 Comments
1 min read
Run different ActiveRecord validations based on context

Run different ActiveRecord validations based on context

Reactions 5 Comments
2 min read
Find records missing an association with `where.missing`

Find records missing an association with `where.missing`

Reactions 8 Comments
2 min read
Testing multiple sessions in the same test with Capybara

Testing multiple sessions in the same test with Capybara

Reactions 6 Comments
1 min read
Pluck single values out of ActiveRecord models or Enumerables

Pluck single values out of ActiveRecord models or Enumerables

Reactions 6 Comments 1
2 min read
Never mix up greater/less than when comparing dates again

Never mix up greater/less than when comparing dates again

Reactions 14 Comments
1 min read
Super readable String operations with `delete_prefix` and `delete_suffix`

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

Reactions 6 Comments
2 min read
Setting CSS classes in Markdown with Jekyll

Setting CSS classes in Markdown with Jekyll

Reactions 4 Comments
1 min read
Use Heroku Dataclips to share query and do ad-hoc data exports

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

Reactions 2 Comments
1 min read
Ensure required environment variables are set when booting up Rails

Ensure required environment variables are set when booting up Rails

Reactions 7 Comments
1 min read
Search and debug gems with `bundle open`

Search and debug gems with `bundle open`

Reactions 12 Comments
1 min read
Automatically cast params with the Rails Attributes API

Automatically cast params with the Rails Attributes API

Reactions 14 Comments 1
3 min read
Show relevant chunks of text with Rails `excerpt` helper

Show relevant chunks of text with Rails `excerpt` helper

Reactions 3 Comments
2 min read
Use Rails `link_to_unless_current` for navigation links

Use Rails `link_to_unless_current` for navigation links

Reactions 7 Comments 1
2 min read
Use Rails `cycle` to avoid `i % 2 == 0` in your view loops

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

Comments
2 min read
Use the Rails helper `highlight` when showing search results

Use the Rails helper `highlight` when showing search results

Reactions 6 Comments
2 min read
Magic Responsive Tables with Stimulus and IntersectionObserver

Magic Responsive Tables with Stimulus and IntersectionObserver

Reactions 2 Comments
7 min read
Hacktoberfest Recap: Open source Ruby/Rails work in 2020

Hacktoberfest Recap: Open source Ruby/Rails work in 2020

Comments
5 min read
Building GitHub-style Hovercards with StimulusJS and HTML-over-the-wire

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

Reactions 3 Comments 1
10 min read
Feature Flags: The simple way to de-stress production releases

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

Reactions 9 Comments
7 min read
Spring Cleaning: Tidying up your codebase

Spring Cleaning: Tidying up your codebase

Reactions 1 Comments
8 min read
Building a Rails CI pipeline with GitHub Actions

Building a Rails CI pipeline with GitHub Actions

Reactions 1 Comments
8 min read
Wrangling slow reports, large file exports, and long-running tasks in Rails with Active Job

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

Reactions 2 Comments
16 min read
Managing Rails schema and data migrations without losing your mind

Managing Rails schema and data migrations without losing your mind

Reactions 1 Comments
6 min read
loading...