aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2012-09-07 20:20:09 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2012-12-31 14:40:59 -0500
commit048cd254e6bb77cf223a714cd7cb86b309cd3c15 (patch)
tree7524519ebf71518ba9fe57332c43aa2bac0ab00b /actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb
parentfe12e4650802d8f28136660fc9ce62c6a28f19e1 (diff)
downloadrails-048cd254e6bb77cf223a714cd7cb86b309cd3c15.tar.gz
rails-048cd254e6bb77cf223a714cd7cb86b309cd3c15.tar.bz2
rails-048cd254e6bb77cf223a714cd7cb86b309cd3c15.zip
Styling for exception page
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb25
1 files changed, 15 insertions, 10 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb
index 5ad96cc657..1c6b5010a3 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb
@@ -1,11 +1,16 @@
-<h1>
- <%=h @exception.class.to_s %>
- <% if @request.parameters['controller'] %>
- in <%=h @request.parameters['controller'].camelize %>Controller<% if @request.parameters['action'] %>#<%=h @request.parameters['action'] %><% end %>
- <% end %>
-</h1>
-<pre><%=h @exception.message %></pre>
+<header>
+ <h1>
+ <%=h @exception.class.to_s %>
+ <% if @request.parameters['controller'] %>
+ in <%=h @request.parameters['controller'].camelize %>Controller<% if @request.parameters['action'] %>#<%=h @request.parameters['action'] %><% end %>
+ <% end %>
+ </h1>
+</header>
-<%= render template: "rescues/_source" %>
-<%= render template: "rescues/_trace" %>
-<%= render template: "rescues/_request_and_response" %>
+<div id="container">
+ <h2><%=h @exception.message %></h2>
+
+ <%= render template: "rescues/_source" %>
+ <%= render template: "rescues/_trace" %>
+ <%= render template: "rescues/_request_and_response" %>
+</div>