Add multipart: true to form for file upload.

I was slightly overzealous when removing this before.

Identified here: ed78770b1a\#commitcomment-2281181
This commit is contained in:
Steve Klabnik 2012-12-10 11:01:21 -08:00
parent 5c2eb889c2
commit d4d9e1f9bf
1 changed files with 1 additions and 1 deletions

View File

@ -1264,7 +1264,7 @@ Creates a field set for grouping HTML form elements.
Creates a file upload field.
```html+erb
<%= form_tag {action: "post"} do %>
<%= form_tag {action: "post"}, {multipart: true} do %>
<label for="file">File to Upload</label> <%= file_field_tag "file" %>
<%= submit_tag %>
<% end %>