diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-01 18:06:52 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-01 18:06:52 +0900 |
commit | a429b29425027006f2bbd4d267928dde1dc2c31a (patch) | |
tree | c26cfa0995a2e966d296ea0dfc11f9388d072ee4 /guides | |
parent | d8b86c236c2bc03397425cf830a7e7b54df0b518 (diff) | |
parent | e06e53e28527a7f90f7e22117174f6376bf6eaf1 (diff) | |
download | rails-a429b29425027006f2bbd4d267928dde1dc2c31a.tar.gz rails-a429b29425027006f2bbd4d267928dde1dc2c31a.tar.bz2 rails-a429b29425027006f2bbd4d267928dde1dc2c31a.zip |
Merge pull request #34583 from gregmolnar/guides_fix
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 |