質問編集履歴

2

SessionControllerを一番下に追記しました。ご確認をよろしくお願い致します。

2021/08/06 23:41

投稿

nao0725
nao0725

スコア5

test CHANGED
File without changes
test CHANGED
@@ -266,7 +266,7 @@
266
266
 
267
267
 
268
268
 
269
- ``
269
+ ```
270
270
 
271
271
 
272
272
 

1

SessionControllerを一番下に追記しました。ご確認をよろしくお願い致します。

2021/08/06 23:41

投稿

nao0725
nao0725

スコア5

test CHANGED
File without changes
test CHANGED
@@ -208,6 +208,68 @@
208
208
 
209
209
 
210
210
 
211
+ ```SessionController
212
+
213
+ # frozen_string_literal: true
214
+
215
+
216
+
217
+ class Users::SessionsController < Devise::SessionsController
218
+
219
+ # before_action :configure_sign_in_params, only: [:create]
220
+
221
+
222
+
223
+ # GET /resource/sign_in
224
+
225
+ # def new
226
+
227
+ # super
228
+
229
+ # end
230
+
231
+
232
+
233
+ # POST /resource/sign_in
234
+
235
+ # def create
236
+
237
+ # super
238
+
239
+ # end
240
+
241
+
242
+
243
+ # DELETE /resource/sign_out
244
+
245
+ # def destroy
246
+
247
+ # super
248
+
249
+ # end
250
+
251
+
252
+
253
+ # protected
254
+
255
+
256
+
257
+ # If you have extra params to permit, append them to the sanitizer.
258
+
259
+ # def configure_sign_in_params
260
+
261
+ # devise_parameter_sanitizer.permit(:sign_in, keys: [:attribute])
262
+
263
+ # end
264
+
265
+ end
266
+
267
+
268
+
269
+ ``
270
+
271
+
272
+
211
273
 
212
274
 
213
275