Permalink
Browse files

Updated documentation for block helpers in render/layouts.rb

  • Loading branch information...
1 parent e68bfaf commit 20eb1ca77ef591e64e33d6c21dc997d89ea62e3d @jeroenvandijk jeroenvandijk committed Mar 12, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/render/layouts.rb
@@ -13,7 +13,7 @@ module Layouts
# ==== 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 Layouts
# ==== 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>

0 comments on commit 20eb1ca

Please sign in to comment.