提交 0631bf4b 编写于 作者: J James Miller

Simplify render :partial

上级 2bcac56a
......@@ -428,7 +428,7 @@ A method for caching fragments of a view rather than an entire action or page. T
<ruby>
<% cache do %>
<%= render :partial => "shared/footer" %>
<%= render "shared/footer" %>
<% end %>
</ruby>
......
......@@ -469,7 +469,7 @@ And in "views":http://api.rubyonrails.org/classes/ActionController/Benchmarking/
<erb>
<% benchmark("Showing projects partial") do %>
<%= render :partial => @projects %>
<%= render @projects %>
<% end %>
</erb>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册