Rails: Redirect after sign in with Devise

后端 未结 6 2015
说谎
说谎 2020-12-14 00:32

Is it possible to redirect users to different pages (based on role) after signing in with Devise? It only seems to redirect to the root :to => ... page defined in routes.rb

6条回答
  •  一生所求
    2020-12-14 01:11

    Here's what I believe is the answer you are looking for from the devise wiki:

    How To: Change the default sign_in and sign_out routes

提交回复
热议问题