Updated documentation for block helpers in render/layouts.rb

This commit is contained in:
Jeroen van Dijk
2010-03-12 13:39:47 +01:00
parent e68bfaf1fe
commit 20eb1ca77e

View File

@@ -13,7 +13,7 @@ module ActionView
# ==== Example
#
# # The template
# <% render :layout => "my_layout" do %>Content<% end %>
# <%= render :layout => "my_layout" do %>Content<% end %>
#
# # The layout
# <html><% yield %></html>
@@ -27,7 +27,7 @@ module ActionView
# ==== Example
#
# # The template
# <% render :layout => "my_layout" do |customer| %>Hello <%= customer.name %><% end %>
# <%= render :layout => "my_layout" do |customer| %>Hello <%= customer.name %><% end %>
#
# # The layout
# <html><% yield Struct.new(:name).new("David") %></html>