diff options
author | Tieg Zaharia <tieg.zaharia@gmail.com> | 2008-08-13 17:22:56 -0400 |
---|---|---|
committer | Tieg Zaharia <tieg.zaharia@gmail.com> | 2008-08-13 17:22:56 -0400 |
commit | fcdf8e2988cdc16b4a8b3ecdd15e401c819c846e (patch) | |
tree | cdf101b2dbe30d9b68c7b11930d1cd2ac31a42ff /actionpack | |
parent | 3b8b7a78df62db1f55c27b2b1a612a605cd9e56f (diff) | |
download | rails-fcdf8e2988cdc16b4a8b3ecdd15e401c819c846e.tar.gz rails-fcdf8e2988cdc16b4a8b3ecdd15e401c819c846e.tar.bz2 rails-fcdf8e2988cdc16b4a8b3ecdd15e401c819c846e.zip |
Fixes file_field_tag docs by taking out deprecated end_form_tag and makes form_tag evaluated instead of output
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index e8ca02d760..e5777b71d7 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -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. |