diff options
author | Joshua Peek <josh@joshpeek.com> | 2010-01-18 21:11:48 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-01-18 21:12:17 -0600 |
commit | 5579de5bab2e9eeba26006705d7b18592948d185 (patch) | |
tree | 511000849ec2224c9d65c69d62cf0ca18eed784a /actionpack/lib | |
parent | f00cbf78725caa44ca46150c4708f9a4fad0e023 (diff) | |
download | rails-5579de5bab2e9eeba26006705d7b18592948d185.tar.gz rails-5579de5bab2e9eeba26006705d7b18592948d185.tar.bz2 rails-5579de5bab2e9eeba26006705d7b18592948d185.zip |
Show Rack env dump on exception page
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb index 5224403dab..7465f2c69b 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb @@ -17,7 +17,10 @@ <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> +<div id="session_dump" style="display:none"><%= debug(@request.session) %></div> + +<p><a href="#" onclick="document.getElementById('env_dump').style.display='block'; return false;">Show Rack ENV</a></p> +<div id="env_dump" style="display:none"><%= debug(@request.env) %></div> <h2 style="margin-top: 30px">Response</h2> |