aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Dijk <jeroen@jeevidee.nl>2010-03-12 13:39:30 +0100
committerJeroen van Dijk <jeroen@jeevidee.nl>2010-03-12 16:50:15 +0100
commitef6462c73003b28c8e060a06120abb9cd67b6d52 (patch)
treea2790188dd81953cc3ba0bc5df27c193e9d50637
parent67de0af60485b4da45d015e9a1dfad5439d5fca2 (diff)
downloadrails-ef6462c73003b28c8e060a06120abb9cd67b6d52.tar.gz
rails-ef6462c73003b28c8e060a06120abb9cd67b6d52.tar.bz2
rails-ef6462c73003b28c8e060a06120abb9cd67b6d52.zip
Updated documentation for block helpers in render/partials.rb
-rw-r--r--actionpack/lib/action_view/render/partials.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/render/partials.rb b/actionpack/lib/action_view/render/partials.rb
index 8b6dce0c1c..62d31662db 100644
--- a/actionpack/lib/action_view/render/partials.rb
+++ b/actionpack/lib/action_view/render/partials.rb
@@ -123,7 +123,7 @@ module ActionView
# You can also apply a layout to a block within any template:
#
# <%# app/views/users/_chief.html.erb &>
- # <% render(:layout => "administrator", :locals => { :user => chief }) do %>
+ # <%= render(:layout => "administrator", :locals => { :user => chief }) do %>
# Title: <%= chief.title %>
# <% end %>
#
@@ -146,7 +146,7 @@ module ActionView
# </div>
#
# <%# app/views/users/index.html.erb &>
- # <% render :layout => @users do |user| %>
+ # <%= render :layout => @users do |user| %>
# Title: <%= user.title %>
# <% end %>
#
@@ -162,7 +162,7 @@ module ActionView
# </div>
#
# <%# app/views/users/index.html.erb &>
- # <% render :layout => @users do |user, section| %>
+ # <%= render :layout => @users do |user, section| %>
# <%- case section when :header -%>
# Title: <%= user.title %>
# <%- when :footer -%>