diff options
author | Ryunosuke SATO <tricknotes.rs@gmail.com> | 2013-01-05 00:50:06 +0900 |
---|---|---|
committer | Ryunosuke SATO <tricknotes.rs@gmail.com> | 2013-01-05 00:50:06 +0900 |
commit | fbb3e8ec136c08e3ff4aab5981a2297771728836 (patch) | |
tree | d04fcf4d51c42032c6969f078245287c3f944f44 /actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb | |
parent | 0cbc2406ea9a03161d7ce4de9cae5ba0800a80e5 (diff) | |
download | rails-fbb3e8ec136c08e3ff4aab5981a2297771728836.tar.gz rails-fbb3e8ec136c08e3ff4aab5981a2297771728836.tar.bz2 rails-fbb3e8ec136c08e3ff4aab5981a2297771728836.zip |
Remove unnecessary `ERB::Util::h`
It is automatically applied when strings is unsafe for html.
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ <h1>Routing Error</h1> </header> <div id="container"> - <h2><%=h @exception.message %></h2> + <h2><%= @exception.message %></h2> <% 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> + <li><code><%= route.inspect.gsub('\\', '') %></code> failed because <%= reason.downcase %></li> <% end %> </ol> </p> |