Skip to content
Browse files

Simplify render :partial

  • Loading branch information...
1 parent 2bcac56 commit 0631bf4baf463a0e8ca74c56a21ed0b320d254d0 @bensie bensie committed
View
2 railties/guides/source/action_view_overview.textile
@@ -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>
View
2 railties/guides/source/performance_testing.textile
@@ -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>

0 comments on commit 0631bf4

Please sign in to comment.
Something went wrong with that request. Please try again.