aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index b127f87c5c..4a5f03233d 100644
--- a/README.md
+++ b/README.md
@@ -116,7 +116,7 @@ Active Storage, with its included JavaScript library, supports uploading directl
2. Annotate file inputs with the direct upload URL.
```ruby
- <%= form.file_field :attachments, multiple: true, data: { direct_upload_url: rails_direct_uploads_url } %>
+ <%= form.file_field :attachments, multiple: true, direct_upload: true %>
```
3. That's it! Uploads begin upon form submission.