```ruby
class ApplicationController < ActionController::Base
  protect_from_forgery

  rescue_from CanCan::AccessDenied do |exception|
    @exception = exception
    render :template => 'home/access_violation', :status => 403
  end
end
```

Update Violation Page for Error Message
user
```ruby
class ApplicationController < ActionController::Base
  protect_from_forgery

  rescue_from CanCan::AccessDenied do |exception|
    @violation = exception
    render :template => 'home/access_violation', :status => 403
  end
end
```
assistant