We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bbceda commit e39373cCopy full SHA for e39373c
guides/source/upgrading_ruby_on_rails.md
@@ -265,10 +265,10 @@ direct import of a module from `@rails/ujs`.
265
266
For example, attempting to import a function from the library will fail:
267
268
-\```
+```javascript
269
import { fileInputSelector } from "@rails/ujs"
270
-#=> export 'fileInputSelector' (imported as 'fileInputSelector') was not found in '@rails/ujs' (possible exports: default)
271
+// ERROR: export 'fileInputSelector' (imported as 'fileInputSelector') was not found in '@rails/ujs' (possible exports: default)
+```
272
273
In Rails 7.1, users should first import the Rails object directly from `@rails/ujs`.
274
Users can then import specific modules from the Rails object.
0 commit comments