質問編集履歴
7
route
test
CHANGED
File without changes
|
test
CHANGED
@@ -430,96 +430,134 @@
|
|
430
430
|
|
431
431
|
|
432
432
|
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
433
|
+
|
434
|
+
|
435
|
+
### 確実に登録されていないlog
|
436
|
+
|
437
|
+
```
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "emal" FROM "users"[0m
|
446
|
+
|
447
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "emal" FROM "users"[0m
|
448
|
+
|
449
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "users"."email" FROM "users"[0m
|
450
|
+
|
451
|
+
Started GET "/" for ::1 at 2020-01-17 21:06:38 +0900
|
452
|
+
|
453
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
454
|
+
|
455
|
+
↳ /Users/kuritahajime/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/log_subscriber.rb:98
|
456
|
+
|
457
|
+
Processing by HomeController#top as HTML
|
458
|
+
|
459
|
+
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
446
460
|
|
447
461
|
↳ app/controllers/application_controller.rb:5
|
448
462
|
|
449
|
-
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "123456789@outlook.jp"], ["LIMIT", 1]]
|
450
|
-
|
451
|
-
↳ app/controllers/users_controller.rb:65
|
452
|
-
|
453
|
-
Rendering
|
463
|
+
Rendering home/top.html.erb within layouts/application
|
454
|
-
|
464
|
+
|
455
|
-
Rendered
|
465
|
+
Rendered home/top.html.erb within layouts/application (1.7ms)
|
456
466
|
|
457
467
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
458
468
|
|
459
469
|
↳ app/views/layouts/application.html.erb:22
|
460
470
|
|
461
|
-
Completed 200 OK in 4
|
471
|
+
Completed 200 OK in 246ms (Views: 225.0ms | ActiveRecord: 0.8ms)
|
462
|
-
|
463
|
-
|
472
|
+
|
464
|
-
|
465
|
-
|
473
|
+
|
466
|
-
|
467
|
-
|
474
|
+
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
475
|
+
|
476
|
-
|
477
|
-
|
476
|
+
|
478
|
-
|
479
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "users"."email" FROM "users"[0m
|
480
|
-
|
481
|
-
Started GET "/" for ::1 at 2020-01-17 21:06:
|
477
|
+
Started GET "/signup" for ::1 at 2020-01-17 21:06:41 +0900
|
482
|
-
|
483
|
-
|
478
|
+
|
484
|
-
|
485
|
-
↳ /Users/kuritahajime/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/log_subscriber.rb:98
|
486
|
-
|
487
|
-
Processing by
|
479
|
+
Processing by UsersController#new as HTML
|
488
|
-
|
480
|
+
|
489
|
-
[1m[36mUser Load (0.
|
481
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
490
482
|
|
491
483
|
↳ app/controllers/application_controller.rb:5
|
492
484
|
|
493
|
-
Rendering
|
485
|
+
Rendering users/new.html.erb within layouts/application
|
494
|
-
|
486
|
+
|
495
|
-
Rendered
|
487
|
+
Rendered users/new.html.erb within layouts/application (0.8ms)
|
496
488
|
|
497
489
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
498
490
|
|
499
491
|
↳ app/views/layouts/application.html.erb:22
|
500
492
|
|
501
|
-
Completed 200 OK in 246ms (Views: 225.0ms | ActiveRecord: 0.8ms)
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
Started GET "/signup" for ::1 at 2020-01-17 21:06:41 +0900
|
508
|
-
|
509
|
-
Processing by UsersController#new as HTML
|
510
|
-
|
511
|
-
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
512
|
-
|
513
|
-
↳ app/controllers/application_controller.rb:5
|
514
|
-
|
515
|
-
Rendering users/new.html.erb within layouts/application
|
516
|
-
|
517
|
-
Rendered users/new.html.erb within layouts/application (0.8ms)
|
518
|
-
|
519
|
-
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
520
|
-
|
521
|
-
↳ app/views/layouts/application.html.erb:22
|
522
|
-
|
523
493
|
Completed 200 OK in 45ms (Views: 26.1ms | ActiveRecord: 0.9ms)
|
524
494
|
|
525
495
|
```
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
```
|
500
|
+
|
501
|
+
**routes**
|
502
|
+
|
503
|
+
Rails.application.routes.draw do
|
504
|
+
|
505
|
+
post "login" => "users#login"
|
506
|
+
|
507
|
+
#OK
|
508
|
+
|
509
|
+
get "login" => "users#login_form"
|
510
|
+
|
511
|
+
#OK
|
512
|
+
|
513
|
+
post "logout" => "users#logout"
|
514
|
+
|
515
|
+
post "users/:id/update" => "users#update"
|
516
|
+
|
517
|
+
get "users/:id/edit" => "users#edit"
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
post "users/create" => "users#create"
|
522
|
+
|
523
|
+
#OK
|
524
|
+
|
525
|
+
get "signup" => "users#new"
|
526
|
+
|
527
|
+
#OK
|
528
|
+
|
529
|
+
get "users/:id" => "users#show"
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
get "posts/index"
|
534
|
+
|
535
|
+
get "posts/new" => "posts#new"
|
536
|
+
|
537
|
+
get "posts/:id" => "posts#show"
|
538
|
+
|
539
|
+
post "posts/create" => "posts#create"
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
get "posts/:id/edit" => "posts#edit"
|
544
|
+
|
545
|
+
post "posts/:id/update" => "posts#update"
|
546
|
+
|
547
|
+
post "posts/:id/destroy" =>"posts#destroy"
|
548
|
+
|
549
|
+
get "/" => "home#top"
|
550
|
+
|
551
|
+
#OK
|
552
|
+
|
553
|
+
get "about" => "home#about"
|
554
|
+
|
555
|
+
#OK
|
556
|
+
|
557
|
+
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
558
|
+
|
559
|
+
end
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
```
|
6
log
test
CHANGED
File without changes
|
test
CHANGED
@@ -461,3 +461,65 @@
|
|
461
461
|
Completed 200 OK in 47ms (Views: 42.2ms | ActiveRecord: 0.4ms)
|
462
462
|
|
463
463
|
```
|
464
|
+
|
465
|
+
### 確実に登録されていないlog
|
466
|
+
|
467
|
+
```
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "emal" FROM "users"[0m
|
476
|
+
|
477
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "emal" FROM "users"[0m
|
478
|
+
|
479
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "users"."email" FROM "users"[0m
|
480
|
+
|
481
|
+
Started GET "/" for ::1 at 2020-01-17 21:06:38 +0900
|
482
|
+
|
483
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
484
|
+
|
485
|
+
↳ /Users/kuritahajime/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/log_subscriber.rb:98
|
486
|
+
|
487
|
+
Processing by HomeController#top as HTML
|
488
|
+
|
489
|
+
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
490
|
+
|
491
|
+
↳ app/controllers/application_controller.rb:5
|
492
|
+
|
493
|
+
Rendering home/top.html.erb within layouts/application
|
494
|
+
|
495
|
+
Rendered home/top.html.erb within layouts/application (1.7ms)
|
496
|
+
|
497
|
+
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
498
|
+
|
499
|
+
↳ app/views/layouts/application.html.erb:22
|
500
|
+
|
501
|
+
Completed 200 OK in 246ms (Views: 225.0ms | ActiveRecord: 0.8ms)
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
Started GET "/signup" for ::1 at 2020-01-17 21:06:41 +0900
|
508
|
+
|
509
|
+
Processing by UsersController#new as HTML
|
510
|
+
|
511
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
512
|
+
|
513
|
+
↳ app/controllers/application_controller.rb:5
|
514
|
+
|
515
|
+
Rendering users/new.html.erb within layouts/application
|
516
|
+
|
517
|
+
Rendered users/new.html.erb within layouts/application (0.8ms)
|
518
|
+
|
519
|
+
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
520
|
+
|
521
|
+
↳ app/views/layouts/application.html.erb:22
|
522
|
+
|
523
|
+
Completed 200 OK in 45ms (Views: 26.1ms | ActiveRecord: 0.9ms)
|
524
|
+
|
525
|
+
```
|
5
log
test
CHANGED
File without changes
|
test
CHANGED
@@ -436,48 +436,28 @@
|
|
436
436
|
|
437
437
|
|
438
438
|
|
439
|
-
Started
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
439
|
+
Started POST "/login" for ::1 at 2020-01-16 18:35:32 +0900
|
440
|
+
|
441
|
+
Processing by UsersController#login as HTML
|
442
|
+
|
443
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"DxkH1Yb0v9v2yWORH7wcBS+HDKHh6uyGiSe+ix1vDTmKN8bt+2WifXIjaVyPxPO0OF1Sf0TESxRMtS2+WnowjQ==", "email"=>"123456789@outlook.jp", "password"=>"[FILTERED]"}
|
444
|
+
|
445
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
448
446
|
|
449
447
|
↳ app/controllers/application_controller.rb:5
|
450
448
|
|
449
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "123456789@outlook.jp"], ["LIMIT", 1]]
|
450
|
+
|
451
|
+
↳ app/controllers/users_controller.rb:65
|
452
|
+
|
451
|
-
Rendering
|
453
|
+
Rendering users/login_form.html.erb within layouts/application
|
452
|
-
|
454
|
+
|
453
|
-
Rendered
|
455
|
+
Rendered users/login_form.html.erb within layouts/application (1.7ms)
|
454
456
|
|
455
457
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
456
458
|
|
457
459
|
↳ app/views/layouts/application.html.erb:22
|
458
460
|
|
459
|
-
Completed 200 OK in 241ms (Views: 219.1ms | ActiveRecord: 0.8ms)
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
Started GET "/signup" for ::1 at 2020-01-16 20:29:51 +0900
|
466
|
-
|
467
|
-
Processing by UsersController#new as HTML
|
468
|
-
|
469
|
-
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
470
|
-
|
471
|
-
↳ app/controllers/application_controller.rb:5
|
472
|
-
|
473
|
-
Rendering users/new.html.erb within layouts/application
|
474
|
-
|
475
|
-
Rendered users/new.html.erb within layouts/application (1.6ms)
|
476
|
-
|
477
|
-
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
478
|
-
|
479
|
-
↳ app/views/layouts/application.html.erb:22
|
480
|
-
|
481
|
-
Completed 200 OK in 4
|
461
|
+
Completed 200 OK in 47ms (Views: 42.2ms | ActiveRecord: 0.4ms)
|
482
|
-
|
462
|
+
|
483
|
-
```
|
463
|
+
```
|
4
logの編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -436,20 +436,48 @@
|
|
436
436
|
|
437
437
|
|
438
438
|
|
439
|
-
Started GET "/
|
439
|
+
Started GET "/" for ::1 at 2020-01-16 20:29:48 +0900
|
440
|
+
|
440
|
-
|
441
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
442
|
+
|
443
|
+
↳ /Users/kuritahajime/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activerecord-5.2.4.1/lib/active_record/log_subscriber.rb:98
|
444
|
+
|
441
|
-
Processing by
|
445
|
+
Processing by HomeController#top as HTML
|
442
|
-
|
443
|
-
|
446
|
+
|
444
|
-
|
445
|
-
[1m[36mUser Load (0.
|
447
|
+
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
446
|
-
|
448
|
+
|
447
|
-
↳ app/controllers/application_controller.rb:5
|
449
|
+
↳ app/controllers/application_controller.rb:5
|
448
|
-
|
450
|
+
|
449
|
-
Redi
|
451
|
+
Rendering home/top.html.erb within layouts/application
|
452
|
+
|
450
|
-
|
453
|
+
Rendered home/top.html.erb within layouts/application (1.6ms)
|
454
|
+
|
455
|
+
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
456
|
+
|
457
|
+
↳ app/views/layouts/application.html.erb:22
|
458
|
+
|
451
|
-
|
459
|
+
Completed 200 OK in 241ms (Views: 219.1ms | ActiveRecord: 0.8ms)
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
452
|
-
|
465
|
+
Started GET "/signup" for ::1 at 2020-01-16 20:29:51 +0900
|
466
|
+
|
467
|
+
Processing by UsersController#new as HTML
|
468
|
+
|
469
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
470
|
+
|
471
|
+
↳ app/controllers/application_controller.rb:5
|
472
|
+
|
473
|
+
Rendering users/new.html.erb within layouts/application
|
474
|
+
|
475
|
+
Rendered users/new.html.erb within layouts/application (1.6ms)
|
476
|
+
|
477
|
+
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
478
|
+
|
479
|
+
↳ app/views/layouts/application.html.erb:22
|
480
|
+
|
453
|
-
Completed
|
481
|
+
Completed 200 OK in 44ms (Views: 29.6ms | ActiveRecord: 0.6ms)
|
454
|
-
|
482
|
+
|
455
|
-
```
|
483
|
+
```
|
3
log修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -436,22 +436,20 @@
|
|
436
436
|
|
437
437
|
|
438
438
|
|
439
|
-
Started GET "/s
|
439
|
+
Started GET "/users/create" for ::1 at 2020-01-16 18:35:03 +0900
|
440
|
-
|
440
|
+
|
441
|
-
Processing by UsersController#
|
441
|
+
Processing by UsersController#show as HTML
|
442
|
+
|
442
|
-
|
443
|
+
Parameters: {"id"=>"create"}
|
444
|
+
|
443
|
-
[1m[36mUser Load (0.
|
445
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
444
446
|
|
445
447
|
↳ app/controllers/application_controller.rb:5
|
446
448
|
|
447
|
-
|
449
|
+
Redirected to http://localhost:3000/login
|
448
|
-
|
450
|
+
|
449
|
-
|
451
|
+
Filter chain halted as :authenticate_user rendered or redirected
|
450
|
-
|
451
|
-
|
452
|
+
|
452
|
-
|
453
|
-
↳ app/views/layouts/application.html.erb:22
|
454
|
-
|
455
|
-
Completed 2
|
453
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.1ms)
|
456
|
-
|
454
|
+
|
457
|
-
```
|
455
|
+
```
|
2
ログの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -427,3 +427,31 @@
|
|
427
427
|
|
428
428
|
|
429
429
|
https://prog-8.com/rails5/study/8/8#/24
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
### 追記(新しいemailで登録した際のログ)
|
434
|
+
|
435
|
+
```
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
Started GET "/signup" for ::1 at 2020-01-16 17:45:22 +0900
|
440
|
+
|
441
|
+
Processing by UsersController#new as HTML
|
442
|
+
|
443
|
+
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
444
|
+
|
445
|
+
↳ app/controllers/application_controller.rb:5
|
446
|
+
|
447
|
+
Rendering users/new.html.erb within layouts/application
|
448
|
+
|
449
|
+
Rendered users/new.html.erb within layouts/application (5.8ms)
|
450
|
+
|
451
|
+
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
452
|
+
|
453
|
+
↳ app/views/layouts/application.html.erb:22
|
454
|
+
|
455
|
+
Completed 200 OK in 97ms (Views: 77.6ms | ActiveRecord: 0.4ms)
|
456
|
+
|
457
|
+
```
|
1
logの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -304,6 +304,114 @@
|
|
304
304
|
|
305
305
|
|
306
306
|
|
307
|
+
```
|
308
|
+
|
309
|
+
**log**
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
Started POST "/users/create" for ::1 at 2020-01-15 01:34:12 +0900
|
316
|
+
|
317
|
+
Processing by UsersController#create as HTML
|
318
|
+
|
319
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"M/EPJmOI7JDA7e8zBdWwVMDPGyKKBcLH8Plv6KOakx22384eHhnxNkQH5f6VrV/l1xVF/C8rZVU1a/zd5I+uqQ==", "name"=>"はじめ", "email"=>"jimequeen@outlook.jp", "password"=>"[FILTERED]"}
|
320
|
+
|
321
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
322
|
+
|
323
|
+
↳ app/controllers/application_controller.rb:5
|
324
|
+
|
325
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
326
|
+
|
327
|
+
↳ app/controllers/users_controller.rb:26
|
328
|
+
|
329
|
+
[1m[36mUser Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "jimequeen@outlook.jp"], ["LIMIT", 1]]
|
330
|
+
|
331
|
+
↳ app/controllers/users_controller.rb:26
|
332
|
+
|
333
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
334
|
+
|
335
|
+
↳ app/controllers/users_controller.rb:26
|
336
|
+
|
337
|
+
Rendering users/new.html.erb within layouts/application
|
338
|
+
|
339
|
+
Rendered users/new.html.erb within layouts/application (0.6ms)
|
340
|
+
|
341
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
342
|
+
|
343
|
+
↳ app/views/layouts/application.html.erb:22
|
344
|
+
|
345
|
+
Completed 200 OK in 98ms (Views: 27.4ms | ActiveRecord: 0.6ms)
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
Started GET "/login" for ::1 at 2020-01-15 01:34:44 +0900
|
352
|
+
|
353
|
+
Processing by UsersController#login_form as HTML
|
354
|
+
|
355
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
356
|
+
|
357
|
+
↳ app/controllers/application_controller.rb:5
|
358
|
+
|
359
|
+
Rendering users/login_form.html.erb within layouts/application
|
360
|
+
|
361
|
+
Rendered users/login_form.html.erb within layouts/application (0.8ms)
|
362
|
+
|
363
|
+
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
364
|
+
|
365
|
+
↳ app/views/layouts/application.html.erb:22
|
366
|
+
|
367
|
+
Completed 200 OK in 38ms (Views: 32.6ms | ActiveRecord: 0.3ms)
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
Started GET "/users/1" for ::1 at 2020-01-15 01:35:06 +0900
|
374
|
+
|
375
|
+
Processing by UsersController#show as HTML
|
376
|
+
|
377
|
+
Parameters: {"id"=>"1"}
|
378
|
+
|
379
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
380
|
+
|
381
|
+
↳ app/controllers/application_controller.rb:5
|
382
|
+
|
383
|
+
Redirected to http://localhost:3000/login
|
384
|
+
|
385
|
+
Filter chain halted as :authenticate_user rendered or redirected
|
386
|
+
|
387
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
Started GET "/login" for ::1 at 2020-01-15 01:35:06 +0900
|
394
|
+
|
395
|
+
Processing by UsersController#login_form as HTML
|
396
|
+
|
397
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
398
|
+
|
399
|
+
↳ app/controllers/application_controller.rb:5
|
400
|
+
|
401
|
+
Rendering users/login_form.html.erb within layouts/application
|
402
|
+
|
403
|
+
Rendered users/login_form.html.erb within layouts/application (1.0ms)
|
404
|
+
|
405
|
+
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
406
|
+
|
407
|
+
↳ app/views/layouts/application.html.erb:22
|
408
|
+
|
409
|
+
Completed 200 OK in 38ms (Views: 32.9ms | ActiveRecord: 0.2ms)
|
410
|
+
|
411
|
+
```
|
412
|
+
|
413
|
+
|
414
|
+
|
307
415
|
|
308
416
|
|
309
417
|
### 試したこと
|