diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-17 18:55:10 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-17 18:55:10 -0700 |
commit | b4a91db441fa9583df24fb8d3cf0d6906e8359db (patch) | |
tree | 22fcca0337858a4bca669f51216561a3f7b97161 /actionpack/lib/action_view/helpers | |
parent | ca8f8fb0316fe9a2f3a4756a781c9bf4cdcf465c (diff) | |
download | rails-b4a91db441fa9583df24fb8d3cf0d6906e8359db.tar.gz rails-b4a91db441fa9583df24fb8d3cf0d6906e8359db.tar.bz2 rails-b4a91db441fa9583df24fb8d3cf0d6906e8359db.zip |
Extract the layout proc into a method, and write documentation explaining what the proc does in various cases.
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/capture_helper.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/capture_helper.rb b/actionpack/lib/action_view/helpers/capture_helper.rb index 1c29eb3b81..a8b5a9dbb9 100644 --- a/actionpack/lib/action_view/helpers/capture_helper.rb +++ b/actionpack/lib/action_view/helpers/capture_helper.rb @@ -111,10 +111,6 @@ module ActionView # # WARNING: content_for is ignored in caches. So you shouldn't use it # 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>. The preferred usage is now - # <tt><%= yield :footer %></tt>. def content_for(name, content = nil, &block) content = capture(&block) if block_given? return @_content_for[name] << content if content |