module Merb::ControllerExceptions
def admin_access_required render end end
In app/views/exceptions/admin_access_required.rhtml
<h1>You're not an administrator!</h1> <p>You tried to access <%= @tried_to_access %> but that URL is restricted to administrators.</p>
Constants
- STATUS_CODES
Mapping of status code names to their numeric value.