質問編集履歴

1

コードの修正

2022/04/16 11:52

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -6,8 +6,13 @@
6
6
  2. リダイレクト先が`http://localhost:3000/users/sign_in`に遷移してしまう
7
7
 
8
8
  ```rb
9
+ class StaticPagesController < ApplicationController
10
+ before_action :authenticate_agent!, only: [:home]
9
- before_action :authenticate_user!, only: [:home]
11
+ before_action :authenticate_user!, only: [:home]
12
+
10
- before_action :authenticate_agent!, only: [:home]
13
+ def home
14
+ end
15
+ end
11
16
  ```
12
17
 
13
18
  どのようにすれば`http://localhost:3000/agents/sign_in`に戻ってくるのでしょうか?