質問編集履歴
1
失敗した時のターミナルを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -157,6 +157,53 @@
|
|
157
157
|
redirect_to を使用した際は「Completed 302 Found」になり、「Completed 200 OK」にならない認識でしょうか。
|
158
158
|
|
159
159
|
よろしくお願いします。
|
160
|
+
|
161
|
+
追記
|
162
|
+
ターミナル
|
163
|
+
```ここに言語を入力
|
164
|
+
Started PATCH "/tasks/8" for ::1 at 2023-06-13 00:39:54 +0900
|
165
|
+
Processing by TasksController#update as TURBO_STREAM
|
166
|
+
Parameters: {"authenticity_token"=>"[FILTERED]", "task"=>{"title"=>"dddd"}, "commit"=>"更新", "id"=>"8"}
|
167
|
+
Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
|
168
|
+
↳ app/controllers/tasks_controller.rb:25:in `update'
|
169
|
+
TRANSACTION (0.1ms) begin transaction
|
170
|
+
Started GET "/tasks/8/edit" for ::1 at 2023-06-13 00:40:43 +0900
|
171
|
+
Processing by TasksController#edit as HTML
|
172
|
+
Parameters: {"id"=>"8"}
|
173
|
+
Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
|
174
|
+
↳ app/controllers/tasks_controller.rb:19:in `edit'
|
175
|
+
Rendering layout layouts/application.html.erb
|
176
|
+
Rendering tasks/edit.html.erb within layouts/application
|
177
|
+
Rendered tasks/edit.html.erb within layouts/application (Duration: 4.7ms | Allocations: 614)
|
178
|
+
Rendered layout layouts/application.html.erb (Duration: 14.3ms | Allocations: 2711)
|
179
|
+
Completed 200 OK in 17ms (Views: 14.9ms | ActiveRecord: 0.1ms | Allocations: 3453)
|
180
|
+
|
181
|
+
|
182
|
+
Started PATCH "/tasks/8" for ::1 at 2023-06-13 00:40:47 +0900
|
183
|
+
Processing by TasksController#update as TURBO_STREAM
|
184
|
+
Parameters: {"authenticity_token"=>"[FILTERED]", "task"=>{"title"=>"qqqq"}, "commit"=>"更新", "id"=>"8"}
|
185
|
+
Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]
|
186
|
+
↳ app/controllers/tasks_controller.rb:25:in `update'
|
187
|
+
Redirected to http://localhost:3000/tasks
|
188
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.1ms | Allocations: 1002)
|
189
|
+
|
190
|
+
|
191
|
+
Started GET "/tasks" for ::1 at 2023-06-13 00:40:47 +0900
|
192
|
+
Processing by TasksController#index as TURBO_STREAM
|
193
|
+
Rendering layout layouts/application.html.erb
|
194
|
+
Rendering tasks/index.html.erb within layouts/application
|
195
|
+
Task Load (0.1ms) SELECT "tasks".* FROM "tasks"
|
196
|
+
↳ app/views/tasks/index.html.erb:6
|
197
|
+
Rendered tasks/index.html.erb within layouts/application (Duration: 3.4ms | Allocations: 1798)
|
198
|
+
Rendered layout layouts/application.html.erb (Duration: 9.4ms | Allocations: 3904)
|
199
|
+
Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.1ms | Allocations: 4178)
|
200
|
+
|
201
|
+
|
202
|
+
```
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
160
207
|
### 補足情報(FW/ツールのバージョンなど)
|
161
208
|
ruby 3.2.2
|
162
209
|
Rails 7.0.5
|