Skip to content

Instantly share code, notes, and snippets.

@cnk
Created March 10, 2017 19:11
Show Gist options
  • Save cnk/e936caaf335521d0c39cebfc45229a82 to your computer and use it in GitHub Desktop.
Save cnk/e936caaf335521d0c39cebfc45229a82 to your computer and use it in GitHub Desktop.
def permission_denied
@page_args[:title] = "Permission Denied"
@body = "You are not allowed to view the page you have requested. If you believe you should have been able to view that page, please use the contact information in the footer to report this problem."
render 'system/errors', status: 403
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment