0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ログイン後のページ遷移

Posted at

deviseでログイン後のページを設定する

application_controller.rb
 before_action :authenticate_user! 

 def after_sign_in_path_for(resource)
   hoge_path # ログイン後に遷移するpathを設定
 end

意外と簡単だった!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?