From 998ab50974403ddc1cd166a3fe97528d344b1db4 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 31 Mar 2005 14:46:11 +0000 Subject: Improved the message display on the exception handler pages #963 [Johan Sorensen] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1048 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/action_controller/templates/rescues/routing_error.rhtml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_controller/templates/rescues/routing_error.rhtml') diff --git a/actionpack/lib/action_controller/templates/rescues/routing_error.rhtml b/actionpack/lib/action_controller/templates/rescues/routing_error.rhtml index 82c01e10c9..bf7dcb232a 100644 --- a/actionpack/lib/action_controller/templates/rescues/routing_error.rhtml +++ b/actionpack/lib/action_controller/templates/rescues/routing_error.rhtml @@ -1,8 +1,10 @@

Routing Error

-

<%=h @exception.message %>

+

<%=h @exception.message %>

<% unless @exception.failures.empty? %>

Failure reasons:

+
    <% @exception.failures.each do |route, reason| %> - <%=h route.inspect.gsub('\\', '') %> failed because <%=h reason.downcase %>
    +
  1. <%=h route.inspect.gsub('\\', '') %> failed because <%=h reason.downcase %>
  2. <% end %> +

<% end %> -- cgit v1.2.3