Sha256: ee94b1f15887d041ff4785bf3441c241039a05c565de697e5070c2459285bb07

Contents?: true

Size: 1.45 KB

Versions: 188

Compression:

Stored size: 1.45 KB

Contents

<% unless @exception.blamed_files.blank? %>
  <% if (hide = @exception.blamed_files.length > 8) %>
    <a href="#" onclick="document.getElementById('blame_trace').style.display='block'; return false;">Show blamed files</a>
  <% end %>
  <pre id="blame_trace" <%='style="display:none"' if hide %>><code><%=h @exception.describe_blame %></code></pre>
<% end %>

<%
  clean_params = @request.filtered_parameters.clone
  clean_params.delete("action")
  clean_params.delete("controller")

  request_dump = clean_params.empty? ? 'None' : clean_params.inspect.gsub(',', ",\n")

  def debug_hash(hash)
    hash.sort_by { |k, v| k.to_s }.map { |k, v| "#{k}: #{v.inspect rescue $!.message}" }.join("\n")
  end unless self.class.method_defined?(:debug_hash)
%>

<h2 style="margin-top: 30px">Request</h2>
<p><b>Parameters</b>: <pre><%=h request_dump %></pre></p>

<p><a href="#" onclick="document.getElementById('session_dump').style.display='block'; return false;">Show session dump</a></p>
<div id="session_dump" style="display:none"><pre><%= debug_hash @request.session %></pre></div>

<p><a href="#" onclick="document.getElementById('env_dump').style.display='block'; return false;">Show env dump</a></p>
<div id="env_dump" style="display:none"><pre><%= debug_hash @request.env.slice(*@request.class::ENV_METHODS) %></pre></div>


<h2 style="margin-top: 30px">Response</h2>
<p><b>Headers</b>: <pre><%=h defined?(@response) ? @response.headers.inspect.gsub(',', ",\n") : 'None' %></pre></p>

Version data entries

188 entries across 149 versions & 20 rubygems

Version Path
actionpack-3.2.22.5 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.22.4 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.22.3 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.22.2 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.22.1 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.22 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.21 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.20 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.19 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.18 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.17 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.16 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.15 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.15.rc3 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.15.rc2 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.15.rc1 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.14 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
actionpack-3.2.14.rc2 lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb