質問編集履歴

2

エラーメッセージの編集

2022/04/29 12:12

投稿

AKIRA0310
AKIRA0310

スコア15

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,7 @@
3
3
  どなたかご教授いただければ幸いです。
4
4
  # 発生している問題・エラーメッセージ
5
5
  ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-04-29/dda38706-abbc-42be-a4dc-186e664c5500.png)
6
+ ```
6
7
  Started POST "/messages" for ::1 at 2022-04-29 13:20:48 +0900
7
8
  Processing by MessagesController#create as HTML
8
9
  Parameters: {"authenticity_token"=>"4HCuuHQj7NdvfhD/JLswirzYc3oOTEsGh4d0JBwkA2B3eY2MacDZYNPhKmZmnGB3ACA7ocuKdjtf+WVCmLnX2A==", "message"=>{"message"=>"初めまして", "room_id"=>"1"}, "commit"=>"送信"}
@@ -17,6 +18,7 @@
17
18
  ↳ app/controllers/messages_controller.rb:7:in `create'
18
19
  Redirected to http://localhost:3000/rooms/1
19
20
  Completed 302 Found in 11ms (ActiveRecord: 1.5ms | Allocations: 6792)
21
+ ```
20
22
  # 該当のソースコード
21
23
  ### messages_controller.rb
22
24
  ```ruby

1

エラーメッセージ貼り付け

2022/04/29 08:27

投稿

AKIRA0310
AKIRA0310

スコア15

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,20 @@
3
3
  どなたかご教授いただければ幸いです。
4
4
  # 発生している問題・エラーメッセージ
5
5
  ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-04-29/dda38706-abbc-42be-a4dc-186e664c5500.png)
6
+ Started POST "/messages" for ::1 at 2022-04-29 13:20:48 +0900
7
+ Processing by MessagesController#create as HTML
8
+ Parameters: {"authenticity_token"=>"4HCuuHQj7NdvfhD/JLswirzYc3oOTEsGh4d0JBwkA2B3eY2MacDZYNPhKmZmnGB3ACA7ocuKdjtf+WVCmLnX2A==", "message"=>{"message"=>"初めまして", "room_id"=>"1"}, "commit"=>"送信"}
9
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 ORDER BY `users`.`id` ASC LIMIT 1
10
+ RoomUser Load (0.4ms) SELECT `room_users`.* FROM `room_users` WHERE `room_users`.`profile_id` = 2 AND `room_users`.`room_id` = 1
11
+ ↳ app/controllers/messages_controller.rb:6:in `create'
12
+ (0.2ms) BEGIN
13
+ ↳ app/controllers/messages_controller.rb:7:in `create'
14
+ Room Load (0.3ms) SELECT `rooms`.* FROM `rooms` WHERE `rooms`.`id` = 1 LIMIT 1
15
+ ↳ app/controllers/messages_controller.rb:7:in `create'
16
+ (0.3ms) ROLLBACK
17
+ ↳ app/controllers/messages_controller.rb:7:in `create'
18
+ Redirected to http://localhost:3000/rooms/1
19
+ Completed 302 Found in 11ms (ActiveRecord: 1.5ms | Allocations: 6792)
6
20
  # 該当のソースコード
7
21
  ### messages_controller.rb
8
22
  ```ruby