When using cancancan, you might want to show an error message when a user tries to access a page they do not have access to.
In your ApplicationController
, add the following:
Nov 14, 2024
When using cancancan, you might want to show an error message when a user tries to access a page they do not have access to.
In your ApplicationController
, add the following: