Module: Merb::ControllerExceptions

Included in:
AuthenticationMixin::BasicAuthentication, Dispatcher, RenderMixin, Request
Defined in:
lib/merb-core/controller/exceptions.rb

Overview

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>

Defined Under Namespace

Classes: Accepted, ActionNotFound, BadGateway, BadRequest, Base, ClientError, Conflict, Continue, Created, ExpectationFailed, Forbidden, GatewayTimeout, Gone, HTTPVersionNotSupported, Informational, InternalServerError, LayoutNotFound, LengthRequired, MethodNotAllowed, MovedPermanently, MovedTemporarily, MultiPartParseError, MultipleChoices, NoContent, NonAuthoritativeInformation, NotAcceptable, NotFound, NotImplemented, NotModified, OK, PartialContent, PaymentRequired, PreconditionFailed, ProxyAuthenticationRequired, Redirection, RequestEntityTooLarge, RequestRangeNotSatisfiable, RequestTimeout, RequestURITooLarge, ResetContent, SeeOther, ServerError, ServiceUnavailable, Successful, SwitchingProtocols, TemplateNotFound, TemporaryRedirect, Unauthorized, UnsupportedMediaType, UseProxy

Constant Summary collapse

STATUS_CODES =

Mapping of status code names to their numeric value.

{}