Webpacker, jQuery, and jQuery plugins

Some tips and recipes on getting jQuery-based applications to convert to, or at least coexist, with Webpacker in Rails 6.0.

Ruby's magic ampersand does more than you think

A few tricks with &:symbol.

The hokusai gem

Introducing a universal clone-stamp for ActiveRecord models.

Undocumented UJS changes when upgrading to Rails 5.1

If you rely on UJS’s interfaces when upgrading to Rails 5.1, beware that the furniture has moved.

Using URL helpers in Rails ActiveJob background jobs

Rails background jobs don’t know the absolute URL unless you configure it explicitly.

Health checks with Stethoscope behind an SSL Elastic Load Balancer

I’m rather fond of the Stethoscope gem for application instance monitoring. Here’s how to configure it correctly in AWS with a TLS-only application load balancer.

Using arrays of hstore with Rails 4

Now merged into Rails, but here’s my original write-up of using hstore columns with PostgreSQL.