aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2012-09-07 23:22:17 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2012-12-31 14:41:04 -0500
commit78a0d86b0a4e9ce791f684d424f8aca96ff6ff92 (patch)
tree4bd6bd00943bf10de54eabe28e7e1dfb234c7b83 /actionpack
parent048cd254e6bb77cf223a714cd7cb86b309cd3c15 (diff)
downloadrails-78a0d86b0a4e9ce791f684d424f8aca96ff6ff92.tar.gz
rails-78a0d86b0a4e9ce791f684d424f8aca96ff6ff92.tar.bz2
rails-78a0d86b0a4e9ce791f684d424f8aca96ff6ff92.zip
Add new style to Routing Error page
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb41
1 files changed, 22 insertions, 19 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
index 6c903d6a17..ca85e6d048 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
@@ -1,24 +1,27 @@
-<h1>Routing Error</h1>
-<p><pre><%=h @exception.message %></pre></p>
-<% unless @exception.failures.empty? %>
- <p>
- <h2>Failure reasons:</h2>
- <ol>
- <% @exception.failures.each do |route, reason| %>
- <li><code><%=h route.inspect.gsub('\\', '') %></code> failed because <%=h reason.downcase %></li>
- <% end %>
- </ol>
- </p>
-<% end %>
-<%= render template: "rescues/_trace" %>
+<header>
+ <h1>Routing Error</h1>
+</header>
+<div id="container">
+ <h2><%=h @exception.message %></h2>
+ <% unless @exception.failures.empty? %>
+ <p>
+ <h2>Failure reasons:</h2>
+ <ol>
+ <% @exception.failures.each do |route, reason| %>
+ <li><code><%=h route.inspect.gsub('\\', '') %></code> failed because <%=h reason.downcase %></li>
+ <% end %>
+ </ol>
+ </p>
+ <% end %>
+ <%= render template: "rescues/_trace" %>
-<h2>
- Routes
-</h2>
+ <h2>
+ Routes
+ </h2>
-<p>
- Routes match in priority from top to bottom
-</p>
+ <p>
+ Routes match in priority from top to bottom
+ </p>
<%= render layout: "routes/route_wrapper" do %>
<%= render partial: "routes/route", collection: @routes %>