1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

render :template is faster than render :file

This commit is contained in:
Santiago Pastorino 2011-01-01 13:44:34 -02:00
parent 9bc879d42a
commit 171172f324
2 changed files with 4 additions and 5 deletions

View file

@ -6,5 +6,5 @@
</h1>
<pre><%=h @exception.message %></pre>
<%= render :file => "rescues/_trace.erb" %>
<%= render :file => "rescues/_request_and_response.erb" %>
<%= render :template => "rescues/_trace" %>
<%= render :template => "rescues/_request_and_response" %>

View file

@ -13,6 +13,5 @@
<p><%=h @exception.sub_template_message %></p>
<%= render :file => "rescues/_trace.erb" %>
<%= render :file => "rescues/_request_and_response.erb" %>
<%= render :template => "rescues/_trace" %>
<%= render :template => "rescues/_request_and_response" %>