質問編集履歴
1
**application.js**の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -56,6 +56,32 @@
|
|
56
56
|
});
|
57
57
|
```
|
58
58
|
|
59
|
+
**application.js**
|
60
|
+
```
|
61
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
62
|
+
// listed below.
|
63
|
+
//
|
64
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
|
65
|
+
// vendor/assets/javascripts directory can be referenced here using a relative path.
|
66
|
+
//
|
67
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
68
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
69
|
+
//
|
70
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
71
|
+
// about supported directives.
|
72
|
+
//
|
73
|
+
//= require rails-ujs
|
74
|
+
//= require activestorage
|
75
|
+
//= require turbolinks
|
76
|
+
//
|
77
|
+
//= require jquery
|
78
|
+
//= require jquery_ujs
|
79
|
+
//
|
80
|
+
//= require cocoon
|
81
|
+
//
|
82
|
+
//= require_tree .
|
83
|
+
```
|
84
|
+
|
59
85
|
### 試したこと
|
60
86
|
|
61
87
|
モーダルで表示させたい箇所の`display: none;`をコメントアウトしてみた所、そこはきちんと表示されました。ですのでjsファイルが何かしらの理由で動いていないのだと思いました。
|