Changeset 9116
- Timestamp:
- 03/28/08 20:03:28 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_view/helpers/capture_helper.rb
r7666 r9116 119 119 # 120 120 # The deprecated way of accessing a content_for block is to use an instance variable 121 # named <tt>@content_for_#{name_of_the_content_block}</tt>. So <tt><%= content_for :footer %></tt> 122 # would be available as <tt><%= @content_for_footer %></tt>. The preferred usage is now 121 # named <tt>@content_for_#{name_of_the_content_block}</tt>. The preferred usage is now 123 122 # <tt><%= yield :footer %></tt>. 124 123 def content_for(name, content = nil, &block)