Tutorials

Heroku Security: Securing your Heroku application - Sqreen Blog
I’m guessing you’re here because you’ve got an application up on Heroku, and you’re wondering what steps you need to take to keep it secure. If so, then awesome—you’re in the right place.In this post, we’re going to be talking about securing appli...




One Weird Trick That Will Speed Up Your Bundle Install
So we know that more threads don’t seem to help us much, at least not with our default Rails/MRI setup, and that we’re probably going to need to have a way to get multiple CPU cores involved in order to use parallelism to speed things up. Bundler ...

Building a Component Library in Rails With Storybook — Orbit Blog
In recent years, the Rails ecosystem improved by leaps and bounds and is catching up with the evolutions that developers use and love in JavaScript frameworks.Under the code name NEW MAGIC (now known as Hotwire), the Basecamp team released Turbo a...

Rails 7 adds invert_where method to ActiveRecord | Saeloun Blog
We often come across cases in our Rails application where we want to negate our where clause conditions.Let’s say we have a system that requires users to verify both their email and phone number. We add two columns email_verified and phone_verifie...


Listing the contents of a remote ZIP archive, without downloading the entire file – Zoned Out
Why I needed to do this is a longer story, but this was a question I was looking for an answer to.Initially it led me to the following SO question:Is it possible to download just part of a ZIP archive (e.g. one file)?Not exactly the same problem b...

Rack apps mounted in Rails — how to protect access to them?
Sidekiq, Flipper, RailsEventStore — what do these Rails gems have in common? They all ship web apps with UI to enhance their usefulness in the application. Getting an overview of processed jobs, managing visibility of feature toggles, browsing eve...