Skip to content

Commit

Permalink
Fixes file_field_tag docs by taking out deprecated end_form_tag and m…
Browse files Browse the repository at this point in the history
…akes form_tag evaluated instead of output
  • Loading branch information
tiegz committed Aug 13, 2008
1 parent 3b8b7a7 commit fcdf8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_view/helpers/form_tag_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ 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 { :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.
Expand Down

0 comments on commit fcdf8e2

Please sign in to comment.