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
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).