diff options
Diffstat (limited to 'actionpack/lib/action_controller/templates/rescues')
-rw-r--r-- | actionpack/lib/action_controller/templates/rescues/_trace.rhtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/templates/rescues/_trace.rhtml b/actionpack/lib/action_controller/templates/rescues/_trace.rhtml index c773230f09..59dcf3d9e6 100644 --- a/actionpack/lib/action_controller/templates/rescues/_trace.rhtml +++ b/actionpack/lib/action_controller/templates/rescues/_trace.rhtml @@ -5,7 +5,7 @@ ["Full Trace", @exception.clean_backtrace] ] if defined?(RAILS_ROOT) - traces.each { |name, trace| trace.map! { |p| p.gsub(/^#{RAILS_ROOT}/, '<b>#{RAILS_ROOT}</b>') } } + traces.each { |name, trace| trace.map! { |p| p.gsub(/^(?:\.\/)?#{RAILS_ROOT}/, '<b>#{RAILS_ROOT}</b>') } } end names = traces.collect {|name, trace| name} %> |