From d4d9e1f9bf2388a34dc6b7b9473ee14cda3166df Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Mon, 10 Dec 2012 11:01:21 -0800 Subject: 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 --- guides/source/action_view_overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides') 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 %> <%= file_field_tag "file" %> <%= submit_tag %> <% end %> -- cgit v1.2.3