質問編集履歴
1
ソースコード追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -136,8 +136,33 @@
|
|
136
136
|
|
137
137
|
```
|
138
138
|
|
139
|
+
```ruby
|
140
|
+
[application.js]
|
141
|
+
// This file is automatically compiled by Webpack, along with any other files
|
142
|
+
// present in this directory. You're encouraged to place your actual application logic in
|
143
|
+
// a relevant structure within app/javascript and only use these pack files to reference
|
144
|
+
// that code so it'll be compiled.
|
139
145
|
|
146
|
+
require("@rails/ujs").start()
|
147
|
+
require("turbolinks").start()
|
148
|
+
require("@rails/activestorage").start()
|
149
|
+
require("channels")
|
150
|
+
require("@fortawesome/fontawesome-free/js/all")
|
151
|
+
require("jquery")
|
152
|
+
import "bootstrap"
|
140
153
|
|
154
|
+
|
155
|
+
// Uncomment to copy all static images under ../images to the output folder and reference
|
156
|
+
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
|
157
|
+
// or the `imagePath` JavaScript helper below.
|
158
|
+
//
|
159
|
+
// const images = require.context('../images', true)
|
160
|
+
// const imagePath = (name) => images(name, true)
|
161
|
+
|
162
|
+
```
|
163
|
+
|
164
|
+
|
165
|
+
|
141
166
|
### 補足情報(FW/ツールのバージョンなど)
|
142
167
|
|
143
168
|
Rails 6.0.3
|