The authorization works nicely, but when a user accesses an action/controller that they don't have access to, they see:
You are not allowed to access this action
The page is blank.
How do I customize what the user sees ? Either by replacing the message altogether, to replacing the page with a new page altogether ?
How would I do this ?
Thanks.
To handle this, I added a permission_denied method in the ApplicationController:
See last section of this Railscast: http://asciicasts.com/episodes/188-declarative-authorization