aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
diff options
context:
space:
mode:
authorRyan Dao <daoduyducduong@gmail.com>2014-07-30 15:35:47 +0700
committerRyan Dao <daoduyducduong@gmail.com>2014-08-08 15:04:55 +0700
commit1ed264bc60f3c76ba7fab339806fa1757702a46b (patch)
treeaa266283d80c8c7f6cad435b190f9f8204a36c44 /actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
parent30529dc00f96777c325dff496930f560fb9d59e9 (diff)
downloadrails-1ed264bc60f3c76ba7fab339806fa1757702a46b.tar.gz
rails-1ed264bc60f3c76ba7fab339806fa1757702a46b.tar.bz2
rails-1ed264bc60f3c76ba7fab339806fa1757702a46b.zip
Retrieve source code for the entire stack trace
Provide the ability to extract the source code of the entire exception stack trace, not just the frame raising the error. This improves debugging capability of the error page, especially for framework-related errors.
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
index bc5d03dc10..e0509f56f4 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
@@ -116,9 +116,15 @@
background-color: #FFCCCC;
}
+ .hidden {
+ display: none;
+ }
+
a { color: #980905; }
a:visited { color: #666; }
+ a.trace-frames { color: #666; }
a:hover { color: #C52F24; }
+ a.trace-frames.selected { color: #C52F24 }
<%= yield :style %>
</style>