Action Cable, Devise, & CanCanCan

August 25, 2020 – This week I worked on rendering partials over websockets with Action Cable. I ran into a problem that tied into my authentication and authorization libraries (Devise and CanCanCan respectively). In...

Dropdowns Without Javascript

August 28, 2018 – You don't need a Javascript library for dropdown menus, just a few lines of CSS.

Adding Code Quality Checks To Your Ruby Test Suite

August 15, 2018 – Running Brakeman, RuboCop, and Bundler Audit all the time is a pain if you're not using CI. Here's how I made it better.

Passing Arguments to StimulusJS Controllers

June 08, 2018 – tl;dr – You can't, but there are other ways of getting data into your functions.

Testing Bidirectional Associations in Rails

March 28, 2018 – Adventures in TDD, or how I learned to make my test suite proofread my model associations.

Redis is letting you down, but it doesn't have to

February 17, 2018 – Are you seeing Redis::ConnectionError: Connection lost (ECONNRESET)? Is your cache hit rate suspiciously low? A story of the bug I didn't know I had, how I found it, and how I got rid of it. It's easy, I promise.