Most of us already use cancan for authorization, where we define the Role Based Access (RBAC) to various models in the Ability class. However, any changes to these abilities, requires code changes to the Ability class and restarting the application for the changes to take effect. What if we could assign these permissions dynamically? That would be great, wouldn’t it. This is how we manage roles an
![How To Manage Roles & Permissions Dynamically Using Cancan](https://cdn-ak-scissors.b.st-hatena.com/image/square/0ea9c58be585594e8d1b0a20ee872cc0ea82887a/height=288;version=1;width=512/https%3A%2F%2Fblog.joshsoftware.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fcropped-cropped-josh-logo.0bdf48fe-4.png%3Fw%3D200)