aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_view_overview.md
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2012-12-10 11:01:21 -0800
committerSteve Klabnik <steve@steveklabnik.com>2012-12-10 11:01:43 -0800
commitd4d9e1f9bf2388a34dc6b7b9473ee14cda3166df (patch)
treee58a88dd9a6c1edb50507ac70e062b932833d4f6 /guides/source/action_view_overview.md
parent5c2eb889c204f3de33b1cea2c7bc8b8469ec7254 (diff)
downloadrails-d4d9e1f9bf2388a34dc6b7b9473ee14cda3166df.tar.gz
rails-d4d9e1f9bf2388a34dc6b7b9473ee14cda3166df.tar.bz2
rails-d4d9e1f9bf2388a34dc6b7b9473ee14cda3166df.zip
Add multipart: true to form for file upload.
I was slightly overzealous when removing this before. Identified here: https://github.com/rails/rails/commit/ed78770b1a13788a5d3fcae484f34654de580bd5\#commitcomment-2281181
Diffstat (limited to 'guides/source/action_view_overview.md')
-rw-r--r--guides/source/action_view_overview.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md
index 6c2871d478..4cdac43a7e 100644
--- a/guides/source/action_view_overview.md
+++ b/guides/source/action_view_overview.md
@@ -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 %>