Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 2688

Show
Ignore:
Timestamp:
10/19/05 15:56:21 (3 years ago)
Author:
minam
Message:

Abbreviate RAILS_ROOT in traces

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r2684 r2688  
     1*SVN* 
     2 
     3* Abbreviate RAILS_ROOT in traces 
     4 
     5 
    16*1.10.1* (October 19th, 2005) 
    27 
  • trunk/actionpack/lib/action_controller/templates/rescues/_trace.rhtml

    r2677 r2688  
    55    ["Full Trace", @exception.clean_backtrace] 
    66  ] 
     7  if defined?(RAILS_ROOT) 
     8    traces.each { |name, trace| trace.map! { |p| p.gsub(/^#{RAILS_ROOT}/, '<b>#{RAILS_ROOT}</b>') } } 
     9  end 
    710  names = traces.collect {|name, trace| name} 
    811%> 
     12 
     13<p><code>RAILS_ROOT: <%= RAILS_ROOT %></code></p> 
    914 
    1015<div id="traces">