Tutorials

The Life-Changing Magic of Tidying Ruby Object Allocations | Heroku
Your app is slow. It does not spark joy. This post will use memory allocation profiling tools to discover performance hotspots, even when they're coming from inside a library. We will use this technique with a real-world application to identify a ...

Protecting Your Apps From Link-based Vulnerabilities: Reverse Tabnabbing, Broken-Link Hijacking, and Open Redirects
Links! They're the very fabric of the Web. Browsing simply wouldn't be possible without them. Creating and following links feels so natural that you probably don't stop very often to wonder about the risks associated with them. In this post, I wan...

Integrating Chargebee subscriptions and recurring billing with a Rails app
When working on a SaaS such as DynaBlogger, one obvious thing you'll need to implement at some point - well, if you want to get paid for it! - is subscriptions management with recurring billing. At a minimum, you need to use a payment gatewa...




What Are the Code Coverage Metrics for Ruby on Rails?
At FastRuby.io we are constantly looking at code coverage metrics for Ruby on Rails applications. It's a key indicator for us. We even use that information to decide whether we work on a Rails upgrade project or not.So, I was interested in seeing ...


Rails 6 (and 5): User Accounts with 3 types of Roles – Devise, Rails Admin, CanCanCan
User accounts of several types are the common functionality of web applications. Ruby on Rails ecosystem provides several helpful gems: Devise for user authentication, CanCanCan for authorization, and RailsAdmin for admin panels.The following arti...