Class: Tora::ErrorController

Inherits:
Controller show all
Defined in:
lib/tora/error_controller.rb

Instance Method Summary collapse

Methods inherited from Controller

#env, #initialize

Constructor Details

This class inherits a constructor from Tora::Controller

Instance Method Details

#errorObject



5
6
7
8
9
10
11
12
13
# File 'lib/tora/error_controller.rb', line 5

def error
    "<h1>Tora Runtime Error</h1>" + 
    "<p>Here follows the insight:</p>" +
    "<hr/>" +
    "<div>" +
    "<pre>#{@env.to_s.gsub('", ', '".<br>')}</pre>" +
    "</div>" +
    "<hr/>" 
end