From 9ed919eb0b87832b4e578d0d2d07f8772df235ae Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 5 Apr 2010 02:51:26 -0700 Subject: revises some <%= in rdoc --- actionpack/lib/action_view/base.rb | 3 ++- actionpack/lib/action_view/helpers/form_tag_helper.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_view') 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 %> # <%= file_field_tag "file" %> # <%= submit_tag %> # <% end %> -- cgit v1.2.3