質問編集履歴
2
logの追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -72,4 +72,112 @@
|
|
72
72
|
Completed 200 OK in 47ms (Views: 46.1ms | ActiveRecord: 0.0ms)
|
73
73
|
```
|
74
74
|
|
75
|
-
開発環境でログインし、ルートURL(homeページ)にリダイレクトされ、「Account not activated. Check your email for the activation link.」というflashがで表示された後にログを確認すると上記のようになっていました。
|
75
|
+
開発環境でログインし、ルートURL(homeページ)にリダイレクトされ、「Account not activated. Check your email for the activation link.」というflashがで表示された後にログを確認すると上記のようになっていました。
|
76
|
+
|
77
|
+
**[追記その2]**
|
78
|
+
---
|
79
|
+
サーバーログに記載されているURLをブラウザで開いた時には、development.log、rails serverのログ共に何も変化はありませんでした。
|
80
|
+
|
81
|
+
念の為、新規登録をもう一度してみて、URLにアクセスしましたが変わらぬ状況です。
|
82
|
+
|
83
|
+
何かの参考になるかもしれないと思い、新規登録した時のdevelopment.logのコードを記載しておきます。
|
84
|
+
```
|
85
|
+
Started GET "/signup" for 111.239.252.121 at 2019-06-17 23:16:43 +0000
|
86
|
+
Cannot render console from 111.239.252.121! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
|
87
|
+
Processing by UsersController#new as HTML
|
88
|
+
Rendering users/new.html.erb within layouts/application
|
89
|
+
Rendered shared/_error_messages.html.erb (0.3ms)
|
90
|
+
Rendered users/_form.html.erb (4.0ms)
|
91
|
+
Rendered users/new.html.erb within layouts/application (5.1ms)
|
92
|
+
Rendered layouts/_rails_default.html.erb (39.3ms)
|
93
|
+
Rendered layouts/_shim.html.erb (0.3ms)
|
94
|
+
Rendered layouts/_header.html.erb (0.8ms)
|
95
|
+
Rendered layouts/_footer.html.erb (0.3ms)
|
96
|
+
Completed 200 OK in 52ms (Views: 51.1ms | ActiveRecord: 0.0ms)
|
97
|
+
|
98
|
+
|
99
|
+
Started POST "/signup" for 111.239.252.121 at 2019-06-17 23:17:10 +0000
|
100
|
+
Cannot render console from 111.239.252.121! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
|
101
|
+
Processing by UsersController#create as HTML
|
102
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ui4NHnclAFbMM9EdiKrrWeZ6Ebn1WEBPEusxWQlGL2yHUi8tk2nkahA7vYbJi0lLZvq0kK/pZYOQPIF+ln67KA==", "user"=>{"name"=>"sample2", "email"=>"example2@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Create my account"}
|
103
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
104
|
+
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE LOWER("users"."email") = LOWER(?) LIMIT ?[0m [["email", "example2@gmail.com"], ["LIMIT", 1]]
|
105
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "created_at", "updated_at", "password_digest", "activation_digest") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "sample2"], ["email", "example2@gmail.com"], ["created_at", "2019-06-17 23:17:10.753884"], ["updated_at", "2019-06-17 23:17:10.753884"], ["password_digest", "$2a$10$.WYZSyY75O2j//ieEZ8CjuwN.v2xKdwQrltHAmxojUdb4iCJD1eUu"], ["activation_digest", "$2a$10$1IXQ/CCixTFZ/QK0OEEmNu1F3JXXfddeiGH4E06/MgukPbmDzA8oe"]]
|
106
|
+
[1m[35m (4.9ms)[0m [1m[36mcommit transaction[0m
|
107
|
+
Rendering user_mailer/account_activation.html.erb within layouts/mailer
|
108
|
+
Rendered user_mailer/account_activation.html.erb within layouts/mailer (1.3ms)
|
109
|
+
Rendering user_mailer/account_activation.text.erb within layouts/mailer
|
110
|
+
Rendered user_mailer/account_activation.text.erb within layouts/mailer (0.4ms)
|
111
|
+
UserMailer#account_activation: processed outbound mail in 10.8ms
|
112
|
+
Sent mail to example2@gmail.com (6.4ms)
|
113
|
+
Date: Mon, 17 Jun 2019 23:17:10 +0000
|
114
|
+
From: noreply@example.com
|
115
|
+
To: example2@gmail.com
|
116
|
+
Message-ID: <5d081f76bd526_11aa1d7070c759ee@ip-172-31-18-133.mail>
|
117
|
+
Subject: Account activation
|
118
|
+
Mime-Version: 1.0
|
119
|
+
Content-Type: multipart/alternative;
|
120
|
+
boundary="--==_mimepart_5d081f76bc424_11aa1d7070c758b";
|
121
|
+
charset=UTF-8
|
122
|
+
Content-Transfer-Encoding: 7bit
|
123
|
+
|
124
|
+
|
125
|
+
----==_mimepart_5d081f76bc424_11aa1d7070c758b
|
126
|
+
Content-Type: text/plain;
|
127
|
+
charset=UTF-8
|
128
|
+
Content-Transfer-Encoding: 7bit
|
129
|
+
|
130
|
+
|
131
|
+
Hi sample2,
|
132
|
+
|
133
|
+
Welcome to the Sample App! Click on the link below to activate your account:
|
134
|
+
|
135
|
+
https://rails-tutorial-mhartl.c9users.io/account_activations/mjY7hPlzD0ZcfXduSwULnQ/edit?email=example2%40gmail.com
|
136
|
+
|
137
|
+
|
138
|
+
----==_mimepart_5d081f76bc424_11aa1d7070c758b
|
139
|
+
Content-Type: text/html;
|
140
|
+
charset=UTF-8
|
141
|
+
Content-Transfer-Encoding: 7bit
|
142
|
+
|
143
|
+
<!DOCTYPE html>
|
144
|
+
<html>
|
145
|
+
<head>
|
146
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
147
|
+
<style>
|
148
|
+
/* Email styles need to be inline */
|
149
|
+
</style>
|
150
|
+
</head>
|
151
|
+
|
152
|
+
<body>
|
153
|
+
<h1>Sample App</h1>
|
154
|
+
|
155
|
+
<p>Hi sample2,</p>
|
156
|
+
|
157
|
+
<p>
|
158
|
+
Welcome to the Sample App! Click on the link below to activate your account:
|
159
|
+
</p>
|
160
|
+
|
161
|
+
<a href="https://rails-tutorial-mhartl.c9users.io/account_activations/mjY7hPlzD0ZcfXduSwULnQ/edit?email=example2%40gmail.com">Activate</a>
|
162
|
+
</body>
|
163
|
+
</html>
|
164
|
+
|
165
|
+
----==_mimepart_5d081f76bc424_11aa1d7070c758b--
|
166
|
+
|
167
|
+
Redirected to https://484a4fcb05bd454f9ea79bc02baa843f.vfs.cloud9.ap-southeast-1.amazonaws.com/
|
168
|
+
Completed 302 Found in 184ms (ActiveRecord: 6.2ms)
|
169
|
+
|
170
|
+
|
171
|
+
Started GET "/" for 111.239.252.121 at 2019-06-17 23:17:11 +0000
|
172
|
+
Cannot render console from 111.239.252.121! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
|
173
|
+
Processing by StaticPagesController#home as HTML
|
174
|
+
Rendering static_pages/home.html.erb within layouts/application
|
175
|
+
Rendered static_pages/home.html.erb within layouts/application (1.8ms)
|
176
|
+
Rendered layouts/_rails_default.html.erb (43.6ms)
|
177
|
+
Rendered layouts/_shim.html.erb (0.3ms)
|
178
|
+
Rendered layouts/_header.html.erb (0.7ms)
|
179
|
+
Rendered layouts/_footer.html.erb (0.5ms)
|
180
|
+
Completed 200 OK in 54ms (Views: 52.7ms | ActiveRecord: 0.0ms)
|
181
|
+
|
182
|
+
```
|
183
|
+
上記の「**https://rails-tutorial-mhartl.c9users.io/account_activations/mjY7hPlzD0ZcfXduSwULnQ/edit?email=example2%40gmail.com**」の部分にアクセスしたものの、ログには何の変化も無かったということです。
|
1
development.logの追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -45,4 +45,31 @@
|
|
45
45
|
### 補足情報(FW/ツールのバージョンなど)
|
46
46
|
|
47
47
|
・macOS
|
48
|
-
・cloud9で開発中
|
48
|
+
・cloud9で開発中
|
49
|
+
|
50
|
+
**[追記]**
|
51
|
+
---------------------------
|
52
|
+
development.logを参照してみたら良いとの回答を頂いただきましたので、追記させて頂きます。
|
53
|
+
```
|
54
|
+
Started POST "/login" for 111.239.252.121 at 2019-06-17 21:45:27 +0000
|
55
|
+
Cannot render console from 111.239.252.121! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
|
56
|
+
Processing by SessionsController#create as HTML
|
57
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"YCiyrxxFcIDA8HYn6Ofxuv5Xd0rna2q+ExewUagyXa+JOEfmp7EMDw4GM6o9+9Dut6WdLVBqt1/0IVFgsTfDCw==", "session"=>{"email"=>"example@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Log in"}
|
58
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "example@gmail.com"], ["LIMIT", 1]]
|
59
|
+
Redirected to https://484a4fcb05bd454f9ea79bc02baa843f.vfs.cloud9.ap-southeast-1.amazonaws.com/
|
60
|
+
Completed 302 Found in 80ms (ActiveRecord: 0.1ms)
|
61
|
+
|
62
|
+
|
63
|
+
Started GET "/" for 111.239.252.121 at 2019-06-17 21:45:28 +0000
|
64
|
+
Cannot render console from 111.239.252.121! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
|
65
|
+
Processing by StaticPagesController#home as HTML
|
66
|
+
Rendering static_pages/home.html.erb within layouts/application
|
67
|
+
Rendered static_pages/home.html.erb within layouts/application (1.3ms)
|
68
|
+
Rendered layouts/_rails_default.html.erb (22.0ms)
|
69
|
+
Rendered layouts/_shim.html.erb (0.2ms)
|
70
|
+
Rendered layouts/_header.html.erb (0.6ms)
|
71
|
+
Rendered layouts/_footer.html.erb (0.4ms)
|
72
|
+
Completed 200 OK in 47ms (Views: 46.1ms | ActiveRecord: 0.0ms)
|
73
|
+
```
|
74
|
+
|
75
|
+
開発環境でログインし、ルートURL(homeページ)にリダイレクトされ、「Account not activated. Check your email for the activation link.」というflashがで表示された後にログを確認すると上記のようになっていました。
|