From 921dcc2570b34e48a5f3eef9e0ef3044488f81d3 Mon Sep 17 00:00:00 2001
From: schneems
Date: Sat, 17 Dec 2011 14:23:40 -0600
Subject: add help text to routing error
When a newcomer hits the routing error page they
are often confused about how to trouble shoot the
next step. Adding a simple help text can gently
remind coders where to get more help.
---
.../middleware/templates/rescues/routing_error.erb | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
(limited to 'actionpack/lib/action_dispatch/middleware')
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 ccfa858cce..f06c07daa5 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
@@ -1,10 +1,15 @@
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 %>
+<% unless @exception.failures.empty? %>
+
+
Failure reasons:
+
+ <% @exception.failures.each do |route, reason| %>
+ <%=h route.inspect.gsub('\\', '') %>
failed because <%=h reason.downcase %>
+ <% end %>
+
+
+<% end %>
+
+ Try running rake routes
for more information on available routes.
+
\ No newline at end of file
--
cgit v1.2.3