diff options
Diffstat (limited to 'actionpack/lib/action_view/partials.rb')
-rw-r--r-- | actionpack/lib/action_view/partials.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/partials.rb b/actionpack/lib/action_view/partials.rb index 8fb4c3a727..5988083091 100644 --- a/actionpack/lib/action_view/partials.rb +++ b/actionpack/lib/action_view/partials.rb @@ -50,23 +50,23 @@ module ActionView # Partials can have their own layouts applied to them. These layouts are different than the ones that are specified globally # for the entire action, but they work in a similar fashion. Imagine a list with two types of users: # - # <!-- app/views/users/index.html.erb --> + # <%# app/views/users/index.html.erb &> # Here's the administrator: # <%= render :partial => "user", :layout => "administrator", :locals => { :user => administrator } %> # # Here's the editor: # <%= render :partial => "user", :layout => "editor", :locals => { :user => editor } %> # - # <!-- app/views/users/_user.html.erb --> + # <%# app/views/users/_user.html.erb &> # Name: <%= user.name %> # - # <!-- app/views/users/_administrator.html.erb --> + # <%# app/views/users/_administrator.html.erb &> # <div id="administrator"> # Budget: $<%= user.budget %> # <%= yield %> # </div> # - # <!-- app/views/users/_editor.html.erb --> + # <%# app/views/users/_editor.html.erb &> # <div id="editor"> # Deadline: $<%= user.deadline %> # <%= yield %> @@ -88,7 +88,7 @@ module ActionView # # You can also apply a layout to a block within any template: # - # <!-- app/views/users/_chief.html.erb --> + # <%# app/views/users/_chief.html.erb &> # <% render(:layout => "administrator", :locals => { :user => chief }) do %> # Title: <%= chief.title %> # <% end %> |