aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorGreg Molnar <molnargerg@gmail.com>2018-12-01 09:44:28 +0100
committerGreg Molnar <molnargerg@gmail.com>2018-12-01 09:48:08 +0100
commite06e53e28527a7f90f7e22117174f6376bf6eaf1 (patch)
treec26cfa0995a2e966d296ea0dfc11f9388d072ee4 /guides/source
parentd8b86c236c2bc03397425cf830a7e7b54df0b518 (diff)
downloadrails-e06e53e28527a7f90f7e22117174f6376bf6eaf1.tar.gz
rails-e06e53e28527a7f90f7e22117174f6376bf6eaf1.tar.bz2
rails-e06e53e28527a7f90f7e22117174f6376bf6eaf1.zip
fix example code syntax [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/active_storage_overview.md2
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