From 78a0d86b0a4e9ce791f684d424f8aca96ff6ff92 Mon Sep 17 00:00:00 2001
From: Guillermo Iguaran
Date: Fri, 7 Sep 2012 23:22:17 -0500
Subject: Add new style to Routing Error page
---
.../middleware/templates/rescues/routing_error.erb | 41 ++++++++++++----------
1 file changed, 22 insertions(+), 19 deletions(-)
(limited to 'actionpack')
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 @@
-Routing Error
-<%=h @exception.message %>
-<% unless @exception.failures.empty? %>
-
-
Failure reasons:
-
- <% @exception.failures.each do |route, reason| %>
- <%=h route.inspect.gsub('\\', '') %>
failed because <%=h reason.downcase %>
- <% end %>
-
-
-<% end %>
-<%= render template: "rescues/_trace" %>
+
+
+
<%=h @exception.message %>
+ <% unless @exception.failures.empty? %>
+
+
Failure reasons:
+
+ <% @exception.failures.each do |route, reason| %>
+ <%=h route.inspect.gsub('\\', '') %>
failed because <%=h reason.downcase %>
+ <% end %>
+
+
+ <% end %>
+ <%= render template: "rescues/_trace" %>
-
- Routes
-
+
+ Routes
+
-
- Routes match in priority from top to bottom
-
+
+ Routes match in priority from top to bottom
+
<%= render layout: "routes/route_wrapper" do %>
<%= render partial: "routes/route", collection: @routes %>
--
cgit v1.2.3