Weird redirect after login with Devise

后端 未结 1 2155
甜味超标
甜味超标 2021-01-15 13:59

I have this application where I use Devise and, after login the user is redirected to a blank page with the path /users/sign_in.user.

Why is Devise red

相关标签:
1条回答
  • 2021-01-15 14:26

    This is probably happening because something like this is being called: user_session_path(user) and you actually don't need the user as argument, so Rails treats it as the format. This is likely wrong in the form_for call in your sign in view. after_sign_in_path_for is not being called because Rails is not considering the given URL a valid request (that's why the response is 406 acceptable).

    0 讨论(0)
提交回复
热议问题