aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-04-05 02:51:26 -0700
committerXavier Noria <fxn@hashref.com>2010-04-05 02:51:26 -0700
commit9ed919eb0b87832b4e578d0d2d07f8772df235ae (patch)
treeb22709a66316551f1c9b426fa68fbc9fa50ad2ee /actionpack/lib
parent43d02dffcbd6d3defea7c37892e4d47bbc061bc5 (diff)
downloadrails-9ed919eb0b87832b4e578d0d2d07f8772df235ae.tar.gz
rails-9ed919eb0b87832b4e578d0d2d07f8772df235ae.tar.bz2
rails-9ed919eb0b87832b4e578d0d2d07f8772df235ae.zip
revises some <%= in rdoc
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/metal/helpers.rb2
-rw-r--r--actionpack/lib/action_controller/record_identifier.rb2
-rw-r--r--actionpack/lib/action_view/base.rb3
-rw-r--r--actionpack/lib/action_view/helpers/form_tag_helper.rb2
4 files changed, 5 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal/helpers.rb b/actionpack/lib/action_controller/metal/helpers.rb
index 8efe01e37b..82bedc3fad 100644
--- a/actionpack/lib/action_controller/metal/helpers.rb
+++ b/actionpack/lib/action_controller/metal/helpers.rb
@@ -36,7 +36,7 @@ module ActionController
#
# <% @events.each do |event| -%>
# <p>
- # <% format_time(event.time, :short, "N/A") %> | <%= event.name %>
+ # <%= format_time(event.time, :short, "N/A") %> | <%= event.name %>
# </p>
# <% end -%>
#
diff --git a/actionpack/lib/action_controller/record_identifier.rb b/actionpack/lib/action_controller/record_identifier.rb
index fe2f6cee70..907c369218 100644
--- a/actionpack/lib/action_controller/record_identifier.rb
+++ b/actionpack/lib/action_controller/record_identifier.rb
@@ -9,7 +9,7 @@ module ActionController
# resources :posts
#
# # view
- # <% div_for(post) do %> <div id="post_45" class="post">
+ # <%= div_for(post) do %> <div id="post_45" class="post">
# <%= post.body %> What a wonderful world!
# <% end %> </div>
#
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index fde61e9df9..be9791505e 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -24,9 +24,10 @@ module ActionView #:nodoc:
# The loop is setup in regular embedding tags <% %> and the name is written using the output embedding tag <%= %>. Note that this
# is not just a usage suggestion. Regular output functions like print or puts won't work with ERb templates. So this would be wrong:
#
+ # <%# WRONG %>
# Hi, Mr. <% puts "Frodo" %>
#
- # If you absolutely must write from within a function, you can use the TextHelper#concat.
+ # If you absolutely must write from within a function use +concat+.
#
# <%- and -%> suppress leading and trailing whitespace, including the trailing newline, and can be used interchangeably with <% and %>.
#
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb
index 0d47c6eecb..cd6138648f 100644
--- a/actionpack/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -183,7 +183,7 @@ module ActionView
# Creates a file upload field. If you are using file uploads then you will also need
# to set the multipart option for the form tag:
#
- # <% form_tag '/upload', :multipart => true do %>
+ # <%= form_tag '/upload', :multipart => true do %>
# <label for="file">File to Upload</label> <%= file_field_tag "file" %>
# <%= submit_tag %>
# <% end %>