Changeset 4275
- Timestamp:
- 04/26/06 14:40:26 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_view/helpers/capture_helper.rb
r4262 r4275 21 21 # <title>layout with js</title> 22 22 # <script type="text/javascript"> 23 # <%= yield :script %>24 # </script>23 # <%= yield :script %> 24 # </script> 25 25 # </head> 26 26 # <body> … … 87 87 # 88 88 # The deprecated way of accessing a content_for block was to use a instance variable 89 # named @ content_for_#{name_of_the_content_block}. So <tt><%content_for('footer') %></tt>89 # named @@content_for_#{name_of_the_content_block}@. So <tt><%= content_for('footer') %></tt> 90 90 # would be avaiable as <tt><%= @content_for_footer %></tt>. The preferred notation now is 91 91 # <tt><%= yield :footer %></tt>.