Authorization is one of the important feature of any web app.
With rails you can leverage the power of all those wonderful open source gems that are available to you or you can code your own authorization module.
The most commonly used gems for authorization are Pundit and Cancan (now