質問編集履歴
1
状況が変わりましたので内容を変更しました
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
非同期通信がしたい
|
1
|
+
非同期通信がしたい Uncaught Error: Syntax error, unrecognized expression: #like-button-#{@post.id}
|
test
CHANGED
@@ -24,17 +24,29 @@
|
|
24
24
|
|
25
25
|
```
|
26
26
|
|
27
|
-
Uncaught Error:
|
27
|
+
Uncaught Error: Syntax error, unrecognized expression: #like-button-#{@post.id}
|
28
28
|
|
29
|
-
at
|
29
|
+
at Function.se.error (jquery-3.4.1.min.js:2)
|
30
30
|
|
31
|
-
at
|
31
|
+
at se.tokenize (jquery-3.4.1.min.js:2)
|
32
32
|
|
33
|
-
at
|
33
|
+
at se.select (jquery-3.4.1.min.js:2)
|
34
34
|
|
35
|
-
at
|
35
|
+
at Function.se [as find] (jquery-3.4.1.min.js:2)
|
36
36
|
|
37
|
+
at k.fn.init.find (jquery-3.4.1.min.js:2)
|
38
|
+
|
39
|
+
at new k.fn.init (jquery-3.4.1.min.js:2)
|
40
|
+
|
41
|
+
at k (jquery-3.4.1.min.js:2)
|
42
|
+
|
43
|
+
at <anonymous>:1:1
|
44
|
+
|
45
|
+
at processResponse (rails-ujs.js:283)
|
46
|
+
|
37
|
-
at
|
47
|
+
at rails-ujs.js:196
|
48
|
+
|
49
|
+
|
38
50
|
|
39
51
|
```
|
40
52
|
|
@@ -49,6 +61,10 @@
|
|
49
61
|
|
50
62
|
|
51
63
|
```Gem
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
52
68
|
|
53
69
|
|
54
70
|
|
@@ -74,6 +90,10 @@
|
|
74
90
|
|
75
91
|
|
76
92
|
|
93
|
+
gem 'jquery-turbolinks'
|
94
|
+
|
95
|
+
|
96
|
+
|
77
97
|
```
|
78
98
|
|
79
99
|
|
@@ -90,11 +110,19 @@
|
|
90
110
|
|
91
111
|
require("channels")
|
92
112
|
|
93
|
-
require('jquery')
|
113
|
+
require('jquery')
|
114
|
+
|
115
|
+
require('turbolinks')
|
94
116
|
|
95
117
|
require("bootstrap")
|
96
118
|
|
119
|
+
|
120
|
+
|
121
|
+
import 'bootstrap';
|
122
|
+
|
97
|
-
|
123
|
+
import '../stylesheets/application';
|
124
|
+
|
125
|
+
|
98
126
|
|
99
127
|
```
|
100
128
|
|