Sha256: aa3db13de914a69a54d0501854719840cf53e40747d5af6d79802b3d97b1cc22
Contents?: true
Size: 470 Bytes
Versions: 47
Compression:
Stored size: 470 Bytes
Contents
class Exceptions < Merb::Controller attr_reader :handler # handle NotFound exceptions (404) def not_found @handler = :not_found render :format => :html end # handle NotAcceptable exceptions (406) def not_acceptable @handler = :not_acceptable render "Handled by: not_acceptable" end # # Any client error (400 series) def client_error @handler = :client_error render "Handled by: client_error" end end
Version data entries
47 entries across 35 versions & 2 rubygems