6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/linkify_errors.rb', line 6
def rescue_action_locally(request, exception)
template = ActionView::Base.new([File.join(File.dirname(__FILE__), 'templates')],
:request => request,
:exception => exception,
:application_trace => application_trace(exception),
:framework_trace => framework_trace(exception),
:full_trace => full_trace(exception)
)
file = "rescues/#{@@rescue_templates[exception.class.name]}.erb"
body = template.render(:file => file, :layout => 'rescues/layout.erb')
render(status_code(exception), body)
end
|