質問編集履歴
3
更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -116,6 +116,80 @@
|
|
116
116
|
|
117
117
|
|
118
118
|
|
119
|
+
```
|
120
|
+
|
121
|
+
# /controllers/registrations_controller.rb
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
class RegistrationsController < Devise::RegistrationsController
|
126
|
+
|
127
|
+
protected
|
128
|
+
|
129
|
+
def update_resource(resource, params)
|
130
|
+
|
131
|
+
resource.update_without_password(params)
|
132
|
+
|
133
|
+
end
|
134
|
+
|
135
|
+
end
|
136
|
+
|
137
|
+
```
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
### パスワード変更を試みた際のログ(エラーは出ないがUPDATEも送られず)
|
142
|
+
|
143
|
+
```
|
144
|
+
|
145
|
+
Started PUT "/" for 10.240.1.41 at 2017-08-17 03:31:21 +0000
|
146
|
+
|
147
|
+
Processing by RegistrationsController#update as HTML
|
148
|
+
|
149
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"UC3W9cPOhJO/O9lsZlsKMH3nnZyDVDT3xMW3gdhakUgLBzYE0XMMZP6LClzUKvvxRnPfnqQUFcRL+1V+cSSm1w==", "user"=>{"l_name"=>"", "f_name"=>"", "nickname"=>"test01", "sex"=>"", "email"=>"test01@gmail.com", "phone_number"=>"", "description"=>"", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"更新"}
|
150
|
+
|
151
|
+
User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
|
152
|
+
|
153
|
+
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
|
154
|
+
|
155
|
+
(0.2ms) begin transaction
|
156
|
+
|
157
|
+
User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE LOWER("users"."email") = LOWER(?) AND ("users"."id" != ?) LIMIT ? [["email", "test01@gmail.com"], ["id", 1], ["LIMIT", 1]]
|
158
|
+
|
159
|
+
(0.2ms) commit transaction
|
160
|
+
|
161
|
+
Redirected to http://myapp.c9users.io:8080/
|
162
|
+
|
163
|
+
Completed 302 Found in 41ms (ActiveRecord: 1.7ms)
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
Started GET "/" for 10.240.0.240 at 2017-08-17 03:31:21 +0000
|
170
|
+
|
171
|
+
Processing by PagesController#home as HTML
|
172
|
+
|
173
|
+
Rendering pages/home.html.slim within layouts/application
|
174
|
+
|
175
|
+
Rendered layouts/_search_form.html.slim (7.4ms)
|
176
|
+
|
177
|
+
Rendered layouts/_rails_default.html.slim (162.4ms)
|
178
|
+
|
179
|
+
Rendered shared/_navbar_guest.html.slim (31.2ms)
|
180
|
+
|
181
|
+
Rendered shared/_message.html.erb (1.3ms)
|
182
|
+
|
183
|
+
Rendered shared/_footer.html.slim (6.6ms)
|
184
|
+
|
185
|
+
Completed 200 OK in 284ms (Views: 277.1ms | ActiveRecord: 2.9ms)
|
186
|
+
|
187
|
+
```
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
119
193
|
###補足情報
|
120
194
|
|
121
195
|
本番環境
|
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -126,8 +126,6 @@
|
|
126
126
|
|
127
127
|
・nginx 1.10.3-0
|
128
128
|
|
129
|
-
・ubuntu0.16.04.2
|
130
|
-
|
131
129
|
・unicorn 4.9.0-2build2
|
132
130
|
|
133
131
|
・ruby 2.4.1p111 (2017-03-22 revision58053) [x86_64-darwin16]
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -124,7 +124,9 @@
|
|
124
124
|
|
125
125
|
・ubuntu 16.04
|
126
126
|
|
127
|
+
・nginx 1.10.3-0
|
128
|
+
|
127
|
-
・
|
129
|
+
・ubuntu0.16.04.2
|
128
130
|
|
129
131
|
・unicorn 4.9.0-2build2
|
130
132
|
|