Sha256: fe0ad08a5928be479919d71c7f7f00d5fcc5de7372d54fd7e87b2a1d3483062b

Contents?: true

Size: 1.41 KB

Versions: 131

Compression:

Stored size: 1.41 KB

Contents

<% unless @exception.blamed_files.blank? %>
  <% if (hide = @exception.blamed_files.length > 8) %>
    <a href="#" onclick="return toggleTrace()">Toggle blamed files</a>
  <% end %>
  <pre id="blame_trace" <%='style="display:none"' if hide %>><code><%= @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(object)
    object.to_hash.sort_by { |k, _| 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>:</p> <pre><%= request_dump %></pre>

<div class="details">
  <div class="summary"><a href="#" onclick="return toggleSessionDump()">Toggle session dump</a></div>
  <div id="session_dump" style="display:none"><pre><%= debug_hash @request.session %></pre></div>
</div>

<div class="details">
  <div class="summary"><a href="#" onclick="return toggleEnvDump()">Toggle env dump</a></div>
  <div id="env_dump" style="display:none"><pre><%= debug_hash @request.env.slice(*@request.class::ENV_METHODS) %></pre></div>
</div>

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

Version data entries

131 entries across 127 versions & 12 rubygems

Version Path
actionpack-4.2.11.3 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.11.2 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.11.1 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.11 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.10 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.10.rc1 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.9 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.9.rc2 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.9.rc1 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/actionpack-4.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.8 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.8.rc1 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.7.1 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.7 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.1.16 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.1.16.rc1 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.7.rc1 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.1.15 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
actionpack-4.2.6 lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb