This section will explain how to properly incorporate authorization into a Rails application to ensure that each feature is protected with the correct permission structure.
Authorization is an important component of most web applications. In this guide we're going to walk through what authorization is, and then how we can install a RubyGem called Petergate, that will enable us to easily integrate authorization into our codebase.
In this guide we'll walk through the next set of installation instructions and update the User model so that users can have a specific role. This is how the authorization engine will know what permissions a user has on the website.
In this guide we'll walk through a step by step guide for implementing authorization into our application by fully integrating the Petergate gem. We'll also analyze what steps to take in order to get Petergate and Devise to work with the null object pattern for non logged in users.
devCamp does not support ancient browsers.
Install a modern version for best experience.