Sha256: 4e6a3e33c73900bf044c288ca4a3ac973b7560282897ac4618eeae2b945a7b34
Contents?: true
Size: 970 Bytes
Versions: 8
Compression:
Stored size: 970 Bytes
Contents
<% clean_backtrace = @exception.backtrace.collect { |line| Object.const_defined?(:RAILS_ROOT) ? line.gsub(RAILS_ROOT, "") : line } app_trace = clean_backtrace.reject { |line| line =~ /(vendor|dispatch|ruby)/ } framework_trace = clean_backtrace - app_trace %> <h1> <%=h @exception.class.to_s %> in <%=h @request.parameters["controller"].capitalize %>#<%=h @request.parameters["action"] %> </h1> <p><%=h Object.const_defined?(:RAILS_ROOT) ? @exception.message.gsub(RAILS_ROOT, "") : @exception.message %></p> <% unless app_trace.empty? %><pre><code><%=h app_trace.join("\n") %></code></pre><% end %> <% unless framework_trace.empty? %> <a href="#" onclick="document.getElementById('framework_trace').style.display='block'; return false;">Show framework trace</a> <pre id="framework_trace" style="display:none"><code><%=h framework_trace.join("\n") %></code></pre> <% end %> <%= render_file(@rescues_path + "/_request_and_response.rhtml", false) %>
Version data entries
8 entries across 8 versions & 2 rubygems