diff options
author | Greg Molnar <molnargerg@gmail.com> | 2018-12-01 09:44:28 +0100 |
---|---|---|
committer | Greg Molnar <molnargerg@gmail.com> | 2018-12-01 09:48:08 +0100 |
commit | e06e53e28527a7f90f7e22117174f6376bf6eaf1 (patch) | |
tree | c26cfa0995a2e966d296ea0dfc11f9388d072ee4 /guides | |
parent | d8b86c236c2bc03397425cf830a7e7b54df0b518 (diff) | |
download | rails-e06e53e28527a7f90f7e22117174f6376bf6eaf1.tar.gz rails-e06e53e28527a7f90f7e22117174f6376bf6eaf1.tar.bz2 rails-e06e53e28527a7f90f7e22117174f6376bf6eaf1.zip |
fix example code syntax [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_storage_overview.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md index d5387219f5..65d4e2934f 100644 --- a/guides/source/active_storage_overview.md +++ b/guides/source/active_storage_overview.md @@ -635,7 +635,7 @@ input.addEventListener('change', (event) => { input.value = null }) -const uploadFile = (file) { +const uploadFile = (file) => { // your form needs the file_field direct_upload: true, which // provides data-direct-upload-url const url = input.dataset.directUploadUrl |