Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 9116

Show
Ignore:
Timestamp:
03/28/08 20:03:28 (7 months ago)
Author:
david
Message:

Update doc (closes #11402)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_view/helpers/capture_helper.rb

    r7666 r9116  
    119119      # 
    120120      # 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 
    123122      # <tt><%= yield :footer %></tt>. 
    124123      def content_for(name, content = nil, &block)