質問編集履歴
1
ソースコード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -274,6 +274,56 @@
|
|
274
274
|
|
275
275
|
|
276
276
|
|
277
|
+
```ruby
|
278
|
+
|
279
|
+
[application.js]
|
280
|
+
|
281
|
+
// This file is automatically compiled by Webpack, along with any other files
|
282
|
+
|
283
|
+
// present in this directory. You're encouraged to place your actual application logic in
|
284
|
+
|
285
|
+
// a relevant structure within app/javascript and only use these pack files to reference
|
286
|
+
|
287
|
+
// that code so it'll be compiled.
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
require("@rails/ujs").start()
|
292
|
+
|
293
|
+
require("turbolinks").start()
|
294
|
+
|
295
|
+
require("@rails/activestorage").start()
|
296
|
+
|
297
|
+
require("channels")
|
298
|
+
|
299
|
+
require("@fortawesome/fontawesome-free/js/all")
|
300
|
+
|
301
|
+
require("jquery")
|
302
|
+
|
303
|
+
import "bootstrap"
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
// Uncomment to copy all static images under ../images to the output folder and reference
|
310
|
+
|
311
|
+
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
|
312
|
+
|
313
|
+
// or the `imagePath` JavaScript helper below.
|
314
|
+
|
315
|
+
//
|
316
|
+
|
317
|
+
// const images = require.context('../images', true)
|
318
|
+
|
319
|
+
// const imagePath = (name) => images(name, true)
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
```
|
324
|
+
|
325
|
+
|
326
|
+
|
277
327
|
|
278
328
|
|
279
329
|
|