aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-09-24 23:01:50 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-09-24 23:01:50 +0000
commite70bb8031f17c113810aa334aa524b2ed34cbb5f (patch)
tree139e3408b1ca3e82bdc10f87779054066c6ecb24 /actionpack/lib
parent8e78a4542e80a2d8d593547ecf8021b0e2902a0d (diff)
downloadrails-e70bb8031f17c113810aa334aa524b2ed34cbb5f.tar.gz
rails-e70bb8031f17c113810aa334aa524b2ed34cbb5f.tar.bz2
rails-e70bb8031f17c113810aa334aa524b2ed34cbb5f.zip
Stop rdoc from whining
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/capture_helper.rb6
-rw-r--r--actionpack/lib/action_view/partials.rb10
2 files changed, 8 insertions, 8 deletions
diff --git a/actionpack/lib/action_view/helpers/capture_helper.rb b/actionpack/lib/action_view/helpers/capture_helper.rb
index 8a74ed04b2..80bff8a4cd 100644
--- a/actionpack/lib/action_view/helpers/capture_helper.rb
+++ b/actionpack/lib/action_view/helpers/capture_helper.rb
@@ -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>
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 %>