Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update doc (closes #11402)

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit b7aa22355413e4c160dbbe280006022bb193cce5 1 parent db3a60e
@dhh dhh authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  actionpack/lib/action_view/helpers/capture_helper.rb
View
3  actionpack/lib/action_view/helpers/capture_helper.rb
@@ -118,8 +118,7 @@ def capture(*args, &block)
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.