Skip to content
Browse files

Merge pull request #4015 from schneems/schneems/routing_error_help

Add Help Text to Routing Error
  • Loading branch information...
2 parents 7bde2e2 + 921dcc2 commit d2951eb089f3902746da578ca27d73833cd5a03b @josevalim josevalim committed Dec 17, 2011
Showing with 13 additions and 8 deletions.
  1. +13 −8 actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
View
21 actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
@@ -1,10 +1,15 @@
<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 %>
+<% 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 %>
+<p>
+ Try running <code>rake routes</code> for more information on available routes.
+</p>

0 comments on commit d2951eb

Please sign in to comment.
Something went wrong with that request. Please try again.