diff options
author | James Miller <bensie@gmail.com> | 2010-08-26 12:27:44 -0700 |
---|---|---|
committer | James Miller <bensie@gmail.com> | 2010-08-26 12:27:44 -0700 |
commit | 0631bf4baf463a0e8ca74c56a21ed0b320d254d0 (patch) | |
tree | 8873eab06403a4787e1c40bf5be8d135cda5023e | |
parent | 2bcac56ab4059356f9f1a0f0d970fd3c9d225f65 (diff) | |
download | rails-0631bf4baf463a0e8ca74c56a21ed0b320d254d0.tar.gz rails-0631bf4baf463a0e8ca74c56a21ed0b320d254d0.tar.bz2 rails-0631bf4baf463a0e8ca74c56a21ed0b320d254d0.zip |
Simplify render :partial
-rw-r--r-- | railties/guides/source/action_view_overview.textile | 2 | ||||
-rw-r--r-- | railties/guides/source/performance_testing.textile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/action_view_overview.textile b/railties/guides/source/action_view_overview.textile index e242cdaf73..459d70f111 100644 --- a/railties/guides/source/action_view_overview.textile +++ b/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> diff --git a/railties/guides/source/performance_testing.textile b/railties/guides/source/performance_testing.textile index 65f8d07e7a..7b21485ea0 100644 --- a/railties/guides/source/performance_testing.textile +++ b/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> |