by Daniel Kehoe Last updated 16 September 2014 How to control access in a Rails application. An overview of Rails authorization, including role-based authorization, with a comparison of the CanCan and Pundit gems. Examples This article offers an overview of role-based authorization in Rails. The RailsApps project provides example applications and tutorials demonstrating authorization: rails-devise