質問編集履歴
2
タスクを作った時のログを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -451,3 +451,49 @@
|
|
451
451
|
足りない情報があればすぐに付け足します。
|
452
452
|
|
453
453
|
よろしくお願いします。
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
### 新しいタスクを作った時のログ
|
458
|
+
|
459
|
+
```
|
460
|
+
|
461
|
+
Started POST "/todos" for 221.248.118.135 at 2020-03-01 06:15:36 +0000
|
462
|
+
|
463
|
+
Cannot render console from 221.248.118.135! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
|
464
|
+
|
465
|
+
Processing by TodosController#create as HTML
|
466
|
+
|
467
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"jZUEysMvyH4I85kgzkFpa+Dc+QID++2CZQA/h9cx9HieMVGJpGSvmX7ewUCib7F0G4OBRvknwtoTe4BOQEX+rA==", "todo"=>{"content"=>"q", "limit(1i)"=>"2020", "limit(2i)"=>"3", "limit(3i)"=>"1"}, "commit"=>"Create Todo"}
|
468
|
+
|
469
|
+
(0.1ms) begin transaction
|
470
|
+
|
471
|
+
SQL (0.3ms) INSERT INTO "todos" ("content", "limit", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["content", "q"], ["limit", "2020-03-01"], ["created_at", "2020-03-01 06:15:36.105118"], ["updated_at", "2020-03-01 06:15:36.105118"]]
|
472
|
+
|
473
|
+
(6.6ms) commit transaction
|
474
|
+
|
475
|
+
Redirected to https://7afe48de9579467591f9620e4fdfff4a.vfs.cloud9.us-east-2.amazonaws.com/todos.21
|
476
|
+
|
477
|
+
Completed 302 Found in 13ms (ActiveRecord: 6.9ms)
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
Started GET "/todos.21" for 221.248.118.135 at 2020-03-01 06:15:36 +0000
|
484
|
+
|
485
|
+
Cannot render console from 221.248.118.135! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
|
486
|
+
|
487
|
+
Processing by TodosController#index as
|
488
|
+
|
489
|
+
Rendering todos/index.html.erb within layouts/application
|
490
|
+
|
491
|
+
Rendered todos/_form.html.erb (7.7ms)
|
492
|
+
|
493
|
+
Todo Load (0.3ms) SELECT "todos".* FROM "todos" ORDER BY "todos"."created_at" DESC
|
494
|
+
|
495
|
+
Rendered todos/index.html.erb within layouts/application (31.4ms)
|
496
|
+
|
497
|
+
Completed 200 OK in 50ms (Views: 45.7ms | ActiveRecord: 0.3ms)
|
498
|
+
|
499
|
+
```
|
1
ボタン部分を表したい形に変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -354,9 +354,7 @@
|
|
354
354
|
|
355
355
|
<td><%= todo.created_at %></td><%#作成日時%>
|
356
356
|
|
357
|
-
<td><%= todo.status %></td>
|
358
|
-
|
359
|
-
<td><%= button_to 'u
|
357
|
+
<td><%= button_to '#{todo.status}', done_path(todo), method: :post %></td><%#完了ボタン%>
|
360
358
|
|
361
359
|
<td><%= link_to 'Show', todo %></td>
|
362
360
|
|