Permalink
Browse files

Fixes file_field_tag docs by taking out deprecated end_form_tag and m…

…akes form_tag evaluated instead of output
  • Loading branch information...
1 parent 3b8b7a7 commit fcdf8e2988cdc16b4a8b3ecdd15e401c819c846e @tiegz tiegz committed Aug 13, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/form_tag_helper.rb
View
4 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -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.

0 comments on commit fcdf8e2

Please sign in to comment.