Sha256: 35b429eff3e7039a237e4b9abfef3f9d180f7612ce8efda9e07998cbe24cc7af
Contents?: true
Size: 966 Bytes
Versions: 95
Compression:
Stored size: 966 Bytes
Contents
<% traces = [ ["Application Trace", @exception.application_backtrace], ["Framework Trace", @exception.framework_backtrace], ["Full Trace", @exception.clean_backtrace] ] names = traces.collect {|name, trace| name} %> <p><code>RAILS_ROOT: <%= defined?(RAILS_ROOT) ? RAILS_ROOT : "unset" %></code></p> <div id="traces"> <% names.each do |name| -%> <% show = "document.getElementById('#{name.gsub /\s/, '-'}').style.display='block';" hide = (names - [name]).collect {|hide_name| "document.getElementById('#{hide_name.gsub /\s/, '-'}').style.display='none';"} %> <a href="#" onclick="<%= hide %><%= show %>; return false;"><%= name %></a> <%= '|' unless names.last == name %> <% end -%> <% traces.each do |name, trace| -%> <div id="<%= name.gsub /\s/, '-' %>" style="display: <%= name == "Application Trace" ? 'block' : 'none' %>;"> <pre><code><%= trace.join "\n" %></code></pre> </div> <% end -%> </div>
Version data entries
95 entries across 95 versions & 6 rubygems