Browse files

render :template is faster than render :file

  • Loading branch information...
1 parent 9bc879d commit 171172f324444a9ea9c98e4f3663c6e401fb3ec7 @spastorino spastorino committed Jan 1, 2011
View
4 actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb
@@ -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
5 actionpack/lib/action_dispatch/middleware/templates/rescues/template_error.erb
@@ -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" %>

0 comments on commit 171172f

Please sign in to comment.