class DebugExtras::DebugPage
Public Class Methods
new(exception, request_path)
click to toggle source
# File lib/debug_extras/debug_page.rb, line 5 def initialize(exception, request_path) @exception = exception @request_path = request_path end
Public Instance Methods
render()
click to toggle source
# File lib/debug_extras/debug_page.rb, line 10 def render template = File.read(File.expand_path("../templates/debug.html.erb", __FILE__)) styles = File.read(File.expand_path("../templates/styles.html", __FILE__)) @inject_styles = ERB.new(styles).result(binding) ERB.new(template).result(binding) end