From fbb3e8ec136c08e3ff4aab5981a2297771728836 Mon Sep 17 00:00:00 2001 From: Ryunosuke SATO Date: Sat, 5 Jan 2013 00:50:06 +0900 Subject: Remove unnecessary `ERB::Util::h` It is automatically applied when strings is unsafe for html. --- .../action_dispatch/middleware/templates/rescues/routing_error.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb') 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 ca85e6d048..77804a8cbb 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb @@ -2,13 +2,13 @@

Routing Error

-

<%=h @exception.message %>

+

<%= @exception.message %>

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

Failure reasons:

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

-- cgit v1.2.3