提交 9ed919eb 编写于 作者: X Xavier Noria

revises some <%= in rdoc

上级 43d02dff
......@@ -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 -%>
#
......
......@@ -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>
#
......
......@@ -24,9 +24,10 @@ class NonConcattingString < ActiveSupport::SafeBuffer
# 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 %>.
#
......
......@@ -183,7 +183,7 @@ def hidden_field_tag(name, value = nil, options = {})
# 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 %>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册