aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/templates/rescues/_trace.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/templates/rescues/_trace.rhtml')
-rw-r--r--actionpack/lib/action_controller/templates/rescues/_trace.rhtml5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/templates/rescues/_trace.rhtml b/actionpack/lib/action_controller/templates/rescues/_trace.rhtml
index 8175fbf18e..c773230f09 100644
--- a/actionpack/lib/action_controller/templates/rescues/_trace.rhtml
+++ b/actionpack/lib/action_controller/templates/rescues/_trace.rhtml
@@ -4,9 +4,14 @@
["Framework Trace", @exception.framework_backtrace],
["Full Trace", @exception.clean_backtrace]
]
+ if defined?(RAILS_ROOT)
+ traces.each { |name, trace| trace.map! { |p| p.gsub(/^#{RAILS_ROOT}/, '<b>#{RAILS_ROOT}</b>') } }
+ end
names = traces.collect {|name, trace| name}
%>
+<p><code>RAILS_ROOT: <%= RAILS_ROOT %></code></p>
+
<div id="traces">
<% names.each do |name| -%>
<%