Fixes file_field_tag docs by taking out deprecated end_form_tag and makes form_tag evaluated instead of output

This commit is contained in:
Tieg Zaharia
2008-08-13 17:22:56 -04:00
parent 3b8b7a78df
commit fcdf8e2988

View File

@@ -155,10 +155,10 @@ 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 { :action => "post" }, { :multipart => true } %>
# <% form_tag '/upload', :multipart => true do %>
# <label for="file">File to Upload</label> <%= file_field_tag "file" %>
# <%= submit_tag %>
# <%= end_form_tag %>
# <% end %>
#
# The specified URL will then be passed a File object containing the selected file, or if the field
# was left blank, a StringIO object.