質問編集履歴
2
情報追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -168,7 +168,7 @@
|
|
168
168
|
|
169
169
|
|
170
170
|
|
171
|
-
--追記--
|
171
|
+
--4/29追記--
|
172
172
|
|
173
173
|
> サーバーログは特にエラーは吐いていない。
|
174
174
|
|
@@ -209,3 +209,9 @@
|
|
209
209
|
Completed 200 OK in 146ms (Views: 23.1ms | ActiveRecord: 87.7ms)
|
210
210
|
|
211
211
|
```
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
--5/1追記--
|
216
|
+
|
217
|
+
create.js.erbに `console.log("hello");` と記述してもサーバーログになにも表示されない。create.js.erbが読み込まれていない・・?
|
1
サーバーログ追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -163,3 +163,49 @@
|
|
163
163
|
|
164
164
|
|
165
165
|
よろしくお願いいたします。
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
--追記--
|
172
|
+
|
173
|
+
> サーバーログは特にエラーは吐いていない。
|
174
|
+
|
175
|
+
```
|
176
|
+
|
177
|
+
Started POST "/comments/9/comment_likes" for 10.240.1.50 at 2018-04-29 09:57:05 +0000
|
178
|
+
|
179
|
+
Cannot render console from 10.240.1.50! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
|
180
|
+
|
181
|
+
Processing by CommentLikesController#create as JS
|
182
|
+
|
183
|
+
Parameters: {"authenticity_token"=>"sample_token_hogehoge", "comment_id"=>"9"}
|
184
|
+
|
185
|
+
User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1
|
186
|
+
|
187
|
+
Comment Load (0.8ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`id` = 9 LIMIT 1
|
188
|
+
|
189
|
+
(0.3ms) BEGIN
|
190
|
+
|
191
|
+
User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
192
|
+
|
193
|
+
Comment Load (62.8ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`id` = 9 LIMIT 1
|
194
|
+
|
195
|
+
SQL (12.0ms) INSERT INTO `comment_likes` (`user_id`, `comment_id`, `created_at`, `updated_at`) VALUES (1, 9, '2018-04-29 09:57:05', '2018-04-29 09:57:05')
|
196
|
+
|
197
|
+
SQL (0.7ms) UPDATE `comments` SET `comment_likes_count` = COALESCE(`comment_likes_count`, 0) + 1 WHERE `comments`.`id` = 9
|
198
|
+
|
199
|
+
(8.2ms) COMMIT
|
200
|
+
|
201
|
+
Rendering comment_likes/create.js.erb
|
202
|
+
|
203
|
+
Comment Exists (0.7ms) SELECT 1 AS one FROM `comments` INNER JOIN `comment_likes` ON `comments`.`id` = `comment_likes`.`comment_id` WHERE `comment_likes`.`user_id` = 1 AND `comments`.`id` = 9 LIMIT 1
|
204
|
+
|
205
|
+
Rendered comment_likes/_comment_like.html.erb (6.4ms)
|
206
|
+
|
207
|
+
Rendered comment_likes/create.js.erb (13.4ms)
|
208
|
+
|
209
|
+
Completed 200 OK in 146ms (Views: 23.1ms | ActiveRecord: 87.7ms)
|
210
|
+
|
211
|
+
```
|