提交 38efc325 编写于 作者: J Jamis Buck

Remove problematic control chars in rescue template. (closes #5316)


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 816d67b1
*SVN* *SVN*
* Remove problematic control chars in rescue template. #5316 [Stefan Kaes]
* Make sure passed routing options are not mutated by routing code. #5314 [Blair Zajac] * Make sure passed routing options are not mutated by routing code. #5314 [Blair Zajac]
* Make sure changing the controller from foo/bar to bing/bang does not change relative to foo. [Jamis Buck] * Make sure changing the controller from foo/bar to bing/bang does not change relative to foo. [Jamis Buck]
......
<h1>Routing Error</h1> <h1>Routing Error</h1>
<p><pre><%=h @exception.message %></pre></p> <p><pre><%=h @exception.message %></pre></p>
<% unless @exception.failures.empty? %><p> <% unless @exception.failures.empty? %><p>
<h2>Failure reasons:</h2> <h2>Failure reasons:</h2>
<ol> <ol>
<% @exception.failures.each do |route, reason| %> <% @exception.failures.each do |route, reason| %>
<li><code><%=h route.inspect.gsub('\\', '') %></code> failed because <%=h reason.downcase %></li> <li><code><%=h route.inspect.gsub('\\', '') %></code> failed because <%=h reason.downcase %></li>
<% end %> <% end %>
</ol> </ol>
</p><% end %> </p><% end %>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册