Class: FastResponder
- Inherits:
-
HK::Controller
- Object
- HK::Controller
- FastResponder
- Defined in:
- lib/hotchkiss/fast_responder.rb
Instance Method Summary collapse
Methods inherited from HK::Controller
Instance Method Details
#on_exception ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/hotchkiss/fast_responder.rb', line 3 def on_exception e = request.env["hk.exception"] status 500 @class = e.class @message = e. @backtrace = e.backtrace "<html><title>ERROR</title><body>#{@class} : #{@message}<br />#{@backtrace.join("<br />")}</body><html>" end |