diff options
author | Jeroen van Dijk <jeroen@jeevidee.nl> | 2010-03-12 13:39:47 +0100 |
---|---|---|
committer | Jeroen van Dijk <jeroen@jeevidee.nl> | 2010-03-12 17:15:21 +0100 |
commit | 20eb1ca77ef591e64e33d6c21dc997d89ea62e3d (patch) | |
tree | 761aeb5d716dfb9a7f19ddd8280bcf5fd53561c5 /actionpack | |
parent | e68bfaf1fe1a7890a67af6f444281185f507cf9e (diff) | |
download | rails-20eb1ca77ef591e64e33d6c21dc997d89ea62e3d.tar.gz rails-20eb1ca77ef591e64e33d6c21dc997d89ea62e3d.tar.bz2 rails-20eb1ca77ef591e64e33d6c21dc997d89ea62e3d.zip |
Updated documentation for block helpers in render/layouts.rb
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/render/layouts.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/render/layouts.rb b/actionpack/lib/action_view/render/layouts.rb index 8688de3d18..e9252dba9e 100644 --- a/actionpack/lib/action_view/render/layouts.rb +++ b/actionpack/lib/action_view/render/layouts.rb @@ -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> |