mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Updated documentation for block helpers in render/partials.rb
This commit is contained in:
parent
67de0af604
commit
ef6462c730
1 changed files with 3 additions and 3 deletions
|
@ -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 -%>
|
||||
|
|
Loading…
Reference in a new issue