Skip to content

Commit e39373c

Browse files
Fix JavaScript code fence and syntax [ci-skip]
Follow-up to rails#49857.
1 parent 4bbceda commit e39373c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guides/source/upgrading_ruby_on_rails.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@ direct import of a module from `@rails/ujs`.
265265

266266
For example, attempting to import a function from the library will fail:
267267

268-
\```
268+
```javascript
269269
import { fileInputSelector } from "@rails/ujs"
270-
#=> export 'fileInputSelector' (imported as 'fileInputSelector') was not found in '@rails/ujs' (possible exports: default)
271-
\```
270+
// ERROR: export 'fileInputSelector' (imported as 'fileInputSelector') was not found in '@rails/ujs' (possible exports: default)
271+
```
272272

273273
In Rails 7.1, users should first import the Rails object directly from `@rails/ujs`.
274274
Users can then import specific modules from the Rails object.

0 commit comments

Comments
 (0)