mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Updated documentation for block helpers in render/layouts.rb
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user