Tutorials




How to Migrate From Capybara Webkit to Webdrivers
By default, Capybara uses rack-test as the driver. Unfortunately rack-test does not support JavaScript. If we want to test things that rely on JavaScript, we need a driver with JS capabilities. Some of these drivers open up a web browser and show ...

Rails CanCanCan database-driven authorization - Abilities in Database
If you are reading this post, it means you already know a thing or two about Ruby on Rails and CanCanCan. As users of this amazing gem, we know how easy it is to set up authorization for users using abilities. Like all worldly things, everything c...


Build a Rails Engine to Accept Stripe One-time Payments
I maintain a handful of Ruby on Rails applications for my clients. Most of them need to handle payments. My go-to payment processor is Stripe. Stripe makes payments easy, but still requires some setup and configuration. I've written the same one-t...



Upgrading a trivial Rails app from Ruby 2.3.1 to 2.7 and from Rails 4.2.6 to 6.0.3
This blogpost describes the upgrading process of a trivial Rails app. The app is called PlusOne (it’s open-sourced) and it’s a small but fun Slack bot (MS Teams support coming).This app doesn’t rely on any external gems, consists only of 3 databas...