質問するログイン新規登録

質問編集履歴

3

更新

2017/08/17 03:34

投稿

japomondo
japomondo

スコア23

title CHANGED
File without changes
body CHANGED
@@ -57,6 +57,43 @@
57
57
 
58
58
  ```
59
59
 
60
+ ```
61
+ # /controllers/registrations_controller.rb
62
+
63
+ class RegistrationsController < Devise::RegistrationsController
64
+ protected
65
+ def update_resource(resource, params)
66
+ resource.update_without_password(params)
67
+ end
68
+ end
69
+ ```
70
+
71
+ ### パスワード変更を試みた際のログ(エラーは出ないがUPDATEも送られず)
72
+ ```
73
+ Started PUT "/" for 10.240.1.41 at 2017-08-17 03:31:21 +0000
74
+ Processing by RegistrationsController#update as HTML
75
+ 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"=>"更新"}
76
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
77
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
78
+ (0.2ms) begin transaction
79
+ 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]]
80
+ (0.2ms) commit transaction
81
+ Redirected to http://myapp.c9users.io:8080/
82
+ Completed 302 Found in 41ms (ActiveRecord: 1.7ms)
83
+
84
+
85
+ Started GET "/" for 10.240.0.240 at 2017-08-17 03:31:21 +0000
86
+ Processing by PagesController#home as HTML
87
+ Rendering pages/home.html.slim within layouts/application
88
+ Rendered layouts/_search_form.html.slim (7.4ms)
89
+ Rendered layouts/_rails_default.html.slim (162.4ms)
90
+ Rendered shared/_navbar_guest.html.slim (31.2ms)
91
+ Rendered shared/_message.html.erb (1.3ms)
92
+ Rendered shared/_footer.html.slim (6.6ms)
93
+ Completed 200 OK in 284ms (Views: 277.1ms | ActiveRecord: 2.9ms)
94
+ ```
95
+
96
+
60
97
  ###補足情報
61
98
  本番環境
62
99
  ・さくらVPS

2

誤字

2017/08/17 03:34

投稿

japomondo
japomondo

スコア23

title CHANGED
File without changes
body CHANGED
@@ -62,7 +62,6 @@
62
62
  ・さくらVPS
63
63
  ・ubuntu 16.04
64
64
  ・nginx 1.10.3-0
65
- ・ubuntu0.16.04.2
66
65
  ・unicorn 4.9.0-2build2
67
66
  ・ruby 2.4.1p111 (2017-03-22 revision58053) [x86_64-darwin16]
68
67
  ・Rails 5.0.3

1

誤字

2017/08/17 00:43

投稿

japomondo
japomondo

スコア23

title CHANGED
File without changes
body CHANGED
@@ -61,7 +61,8 @@
61
61
  本番環境
62
62
  ・さくらVPS
63
63
  ・ubuntu 16.04
64
+ ・nginx 1.10.3-0
64
- nginx 1.10.3-0ubuntu0.16.04.2
65
+ ubuntu0.16.04.2
65
66
  ・unicorn 4.9.0-2build2
66
67
  ・ruby 2.4.1p111 (2017-03-22 revision58053) [x86_64-darwin16]
67
68
  ・Rails 5.0.3