Tutorials

From Paperclip to Active Storage at scale - Finnian Anderson
I was until recently working on a Ruby on Rails project as part of my day job, which used Paperclip for attaching files within the application. With Paperclip being deprecated in May 2018, it was high time we moved to an alternative.Active Storage...
![Migrate a Rails App from Heroku to Dokku [Step by Step Tutorial]](/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTA5MDgsInB1ciI6ImJsb2JfaWQifX0=--bcf7fa585e0923edb4c2e37b169e4200eb08b336/open-uri20221201-4201-bzdi7u.avif)
Migrate a Rails App from Heroku to Dokku [Step by Step Tutorial]
Dokku is dev ops for dummies and a cheaper alternative to Heroku. Recently I’ve migrated a couple of my projects to it. In this tutorial, I will describe how to setup and migrate a Rails app to Dokku with PostgreSQL, Sidekiq, Redis and Let’s Encry...

Verifying Content-Security Policy with Selenium and Cuprite | Arkency Blog
Once upon a time, a fellow RailsEventStore enthusiast reported an issue. It turned out that the RES::Browser component was not compatible with a quite reasonable Content-Security Policy they were using in their Rails app. His report led to an inte...



How To Set Up User Authentication with Devise in a Rails 7 Application | DigitalOcean
The Devise gem is an authentication solution for Ruby on Rails applications; it helps you set up production-ready user authentication in your projects without having to do everything on your own. Devise provides many useful features such as handli...


Adding Sidekiq Job Context to ActiveRecord Query Log Tags
Anyone that has worked with Rails for any significant amount of time probably knows that Rails performance tends to be tightly coupled to database query performance. For this reason, it’s extremely valuable to make friends with your local slow que...
![[JA]error_highlight: user-friendly error diagnostics / Yusuke Endoh @mametter - YouTube](/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTE0ODYsInB1ciI6ImJsb2JfaWQifX0=--948588555f16fecf172fba0559904d32d9c24d7a/open-uri20221114-676-nsvwfm.avif)