Sha256: cb3e2fc7bb7405a3544918561af8c7c85173fbe167dfed00c142de1e3547a133
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 Bytes
Contents
require "erb" module DebugExtras class ErrorPage def initialize(exception, request_path) @exception = exception @request_path = request_path @template = File.read(File.expand_path("../templates/main.html.erb", __FILE__)) end def render ERB.new(@template).result( binding ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
debug-extras-0.2.0 | lib/debug_extras/error_page.rb |