Upgraded to Rails 2.0.2, except that we maintain vendor/rails/actionpack/lib/action_controller/routing.rb from Rail 1.2.6 (at least for now), so that Routes don't change. We still get to enjoy Rails's many new features. Also fixed a bug in Chunk-handling: disable WikiWord processing in tags (for real this time).
25 lines
1 KiB
Plaintext
25 lines
1 KiB
Plaintext
<% 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.parameters.clone
|
|
clean_params.delete("action")
|
|
clean_params.delete("controller")
|
|
|
|
request_dump = clean_params.empty? ? 'None' : clean_params.inspect.gsub(',', ",\n")
|
|
%>
|
|
|
|
<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"><%= debug(request.session.instance_variable_get("@data")) %></div>
|
|
|
|
|
|
<h2 style="margin-top: 30px">Response</h2>
|
|
<p><b>Headers</b>: <pre><%=h response ? response.headers.inspect.gsub(',', ",\n") : 'None' %></pre></p>
|