mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user