Sha256: 27779938c0aded0a8c1e28eee965621ce4dd338e15eb6779efab7cb19917686e
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
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.join %><%= 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.enum_with_index.collect { |line, index| link_to line, "code_buddy/stack/#{index}" }.join("\n") -%></code></pre> </div> <% end %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
code_buddy-0.0.4 | lib/code_buddy/rails2/templates/rescues/_trace.erb |