@rails/activestorage 7.1.0-rc1 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -145,7 +145,7 @@ Active Storage, with its included JavaScript library, supports uploading directl
|
|
|
145
145
|
1. Include the Active Storage JavaScript in your application's JavaScript bundle or reference it directly.
|
|
146
146
|
|
|
147
147
|
Requiring directly without bundling through the asset pipeline in the application HTML with autostart:
|
|
148
|
-
```
|
|
148
|
+
```erb
|
|
149
149
|
<%= javascript_include_tag "activestorage" %>
|
|
150
150
|
```
|
|
151
151
|
Requiring via importmap-rails without bundling through the asset pipeline in the application HTML without autostart as ESM:
|
|
@@ -170,7 +170,7 @@ Active Storage, with its included JavaScript library, supports uploading directl
|
|
|
170
170
|
```
|
|
171
171
|
2. Annotate file inputs with the direct upload URL.
|
|
172
172
|
|
|
173
|
-
```
|
|
173
|
+
```erb
|
|
174
174
|
<%= form.file_field :attachments, multiple: true, direct_upload: true %>
|
|
175
175
|
```
|
|
176
176
|
3. That's it! Uploads begin upon form submission.
|
package/package.json
CHANGED