Posts

CSS selector input test grid

A table of the elements along with selectors for their various states, for examining stateful behaviours in web pages without using Javascript.

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.

Using arrays of hstore with Rails 4

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