質問編集履歴
1
applicationjs
test
CHANGED
File without changes
|
test
CHANGED
@@ -129,3 +129,59 @@
|
|
129
129
|
|
130
130
|
|
131
131
|
```
|
132
|
+
|
133
|
+
```applicationjs
|
134
|
+
|
135
|
+
// This file is automatically compiled by Webpack, along with any other files
|
136
|
+
|
137
|
+
// present in this directory. You're encouraged to place your actual application logic in
|
138
|
+
|
139
|
+
// a relevant structure within app/javascript and only use these pack files to reference
|
140
|
+
|
141
|
+
// that code so it'll be compiled.
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
require("@rails/ujs").start()
|
146
|
+
|
147
|
+
require("turbolinks").start()
|
148
|
+
|
149
|
+
require("@rails/activestorage").start()
|
150
|
+
|
151
|
+
require("channels")
|
152
|
+
|
153
|
+
require("jquery")
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
// Uncomment to copy all static images under ../images to the output folder and reference
|
158
|
+
|
159
|
+
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
|
160
|
+
|
161
|
+
// or the `imagePath` JavaScript helper below.
|
162
|
+
|
163
|
+
//
|
164
|
+
|
165
|
+
// const images = require.context('../images', true)
|
166
|
+
|
167
|
+
// const imagePath = (name) => images(name, true)
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
//= require jquery3
|
172
|
+
|
173
|
+
//= require materialize
|
174
|
+
|
175
|
+
//= require materialize-sprockets
|
176
|
+
|
177
|
+
//= require turbolinks
|
178
|
+
|
179
|
+
//= require_tree .
|
180
|
+
|
181
|
+
import 'materialize-css/dist/js/materialize'
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
```
|