mirror of
https://github.com/github/rails.git
synced 2026-01-30 00:38:00 -05:00
Stop rdoc from whining
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -61,7 +61,7 @@ module ActionView
|
||||
#
|
||||
# You can also use this syntax alongside an existing call to <tt>yield</tt> in a layout. For example:
|
||||
#
|
||||
# <!-- This is the layout -->
|
||||
# <%# This is the layout %>
|
||||
# <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
# <head>
|
||||
# <title>My Website</title>
|
||||
@@ -75,7 +75,7 @@ module ActionView
|
||||
# And now, we'll create a view that has a content_for call that
|
||||
# creates the <tt>script</tt> identifier.
|
||||
#
|
||||
# <!-- This is our view -->
|
||||
# <%# This is our view %>
|
||||
# Please login!
|
||||
#
|
||||
# <% content_for :script do %>
|
||||
@@ -100,7 +100,7 @@ module ActionView
|
||||
# <li><%= link_to 'Home', :action => 'index' %></li>
|
||||
# <% end %>
|
||||
#
|
||||
# <!-- Add some other content, or use a different template: -->
|
||||
# <%# Add some other content, or use a different template: %>
|
||||
#
|
||||
# <% content_for :navigation do %>
|
||||
# <li><%= link_to 'Login', :action => 'login' %></li>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user