diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-03-28 20:03:28 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-03-28 20:03:28 +0000 |
commit | b7aa22355413e4c160dbbe280006022bb193cce5 (patch) | |
tree | c09f4b4fa0068a57fbc9d3d0fce5f0be6d663caf | |
parent | db3a60eb92707912461c76895492f6b018b63cc5 (diff) | |
download | rails-b7aa22355413e4c160dbbe280006022bb193cce5.tar.gz rails-b7aa22355413e4c160dbbe280006022bb193cce5.tar.bz2 rails-b7aa22355413e4c160dbbe280006022bb193cce5.zip |
Update doc (closes #11402)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/lib/action_view/helpers/capture_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/capture_helper.rb b/actionpack/lib/action_view/helpers/capture_helper.rb index fc8cd66d72..9ea06568cf 100644 --- a/actionpack/lib/action_view/helpers/capture_helper.rb +++ b/actionpack/lib/action_view/helpers/capture_helper.rb @@ -118,8 +118,7 @@ module ActionView # for elements that will be fragment cached. # # The deprecated way of accessing a content_for block is to use an instance variable - # named <tt>@content_for_#{name_of_the_content_block}</tt>. So <tt><%= content_for :footer %></tt> - # would be available as <tt><%= @content_for_footer %></tt>. The preferred usage is now + # named <tt>@content_for_#{name_of_the_content_block}</tt>. The preferred usage is now # <tt><%= yield :footer %></tt>. def content_for(name, content = nil, &block) existing_content_for = instance_variable_get("@content_for_#{name}").to_s |