質問編集履歴
3
同上
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,17 +54,17 @@
|
|
54
54
|
またlogからelse内に入っていることがわかるが、画面が変わらない。
|
55
55
|
![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-03-13/b38c1eab-2915-43e4-99e7-786929d6839b.png)
|
56
56
|
```ここに言語を入力
|
57
|
-
Started POST "/login/auth" for 127.0.0.1 at 2022-03-13 08:4
|
57
|
+
Started POST "/login/auth" for 127.0.0.1 at 2022-03-13 08:51:24 +0900
|
58
58
|
Processing by LoginController#auth as TURBO_STREAM
|
59
|
-
Parameters: {"authenticity_token"=>"[FILTERED]", "username"=>"aaaa", "password"=>"[FILTERED]", "referer"=>"", "commit"=>"ログイン"}
|
59
|
+
Parameters: {"authenticity_token"=>"[FILTERED]", "username"=>"aaaaa", "password"=>"[FILTERED]", "referer"=>"", "commit"=>"ログイン"}
|
60
|
-
User Load (
|
60
|
+
User Load (3.5ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT ? [["username", "aaaaa"], ["LIMIT", 1]]
|
61
61
|
↳ app/controllers/login_controller.rb:7:in `auth'
|
62
62
|
@errorをセットしました。
|
63
63
|
Rendering layout layouts/application.html.erb
|
64
64
|
Rendering login/index.html.erb within layouts/application
|
65
|
-
Rendered login/index.html.erb within layouts/application (Duration:
|
65
|
+
Rendered login/index.html.erb within layouts/application (Duration: 28.9ms | Allocations: 171047)
|
66
|
-
Rendered layout layouts/application.html.erb (Duration:
|
66
|
+
Rendered layout layouts/application.html.erb (Duration: 140.9ms | Allocations: 760213)
|
67
|
-
Completed 200 OK in 1
|
67
|
+
Completed 200 OK in 210ms (Views: 157.6ms | ActiveRecord: 3.5ms | Allocations: 1165215)
|
68
68
|
```
|
69
69
|
|
70
70
|
分かる方、ご教示いただけると幸いです。
|
2
調査結果を指摘の通り、更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,11 +15,14 @@
|
|
15
15
|
else
|
16
16
|
flash.now[:referer] = params[:referer]
|
17
17
|
@error = 'ユーザ名/パスワードが間違っています。'
|
18
|
+
logger.debug('@errorをセットしました。')
|
18
19
|
render action: :index
|
19
20
|
end
|
20
21
|
|
21
22
|
end
|
23
|
+
|
22
24
|
end
|
25
|
+
|
23
26
|
```
|
24
27
|
・view( index.html.erb )
|
25
28
|
```ここに言語を入力
|
@@ -50,7 +53,19 @@
|
|
50
53
|
|
51
54
|
またlogからelse内に入っていることがわかるが、画面が変わらない。
|
52
55
|
![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-03-13/b38c1eab-2915-43e4-99e7-786929d6839b.png)
|
56
|
+
```ここに言語を入力
|
57
|
+
Started POST "/login/auth" for 127.0.0.1 at 2022-03-13 08:48:31 +0900
|
58
|
+
Processing by LoginController#auth as TURBO_STREAM
|
59
|
+
Parameters: {"authenticity_token"=>"[FILTERED]", "username"=>"aaaa", "password"=>"[FILTERED]", "referer"=>"", "commit"=>"ログイン"}
|
60
|
+
User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT ? [["username", "aaaa"], ["LIMIT", 1]]
|
61
|
+
↳ app/controllers/login_controller.rb:7:in `auth'
|
62
|
+
@errorをセットしました。
|
63
|
+
Rendering layout layouts/application.html.erb
|
64
|
+
Rendering login/index.html.erb within layouts/application
|
53
|
-
|
65
|
+
Rendered login/index.html.erb within layouts/application (Duration: 15.4ms | Allocations: 171047)
|
66
|
+
Rendered layout layouts/application.html.erb (Duration: 69.4ms | Allocations: 757857)
|
67
|
+
Completed 200 OK in 129ms (Views: 76.6ms | ActiveRecord: 1.5ms | Allocations: 1165219)
|
68
|
+
```
|
54
69
|
|
55
70
|
分かる方、ご教示いただけると幸いです。
|
56
71
|
よろしくお願いいたします。
|
1
調査状況を更新しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,6 +48,10 @@
|
|
48
48
|
indexアクションで定義する@msgは正しくViewで表示される。
|
49
49
|
![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-03-12/68cae4c4-7397-4d59-a937-15388ffedcce.png)
|
50
50
|
|
51
|
+
またlogからelse内に入っていることがわかるが、画面が変わらない。
|
52
|
+
![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-03-13/b38c1eab-2915-43e4-99e7-786929d6839b.png)
|
53
|
+
![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-03-13/ce1321e2-a564-45f5-9d51-118d5822225c.png)
|
54
|
+
|
51
55
|
分かる方、ご教示いただけると幸いです。
|
52
56
|
よろしくお願いいたします。
|
53
57
|
|