Tutorials

Comparison of approaches to multitenancy in Rails apps
You can implement multitenancy on a couple different levels. If you’re on PostgreSQL:Row level (putting tenant_id columns to every table and filtering everywhere).Schema level (namespaces is a more explanatory name, see PostgreSQL schemas).Databas...








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