Tutorials

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...


How to use Bootstrap, jQuery and other libraries in Rails 6 with Webpacker
Since Rails 6 , Webpacker has replaced the old assets pipeline (sprockets) to handle the javascript compilation and minification.Webpacker is a gem which is a wrapper for webpack.js, webpack.js handles bundling of javascript code, and webpacker le...