Created
November 7, 2020 03:30
-
-
Save samgooi4189/1abc04d0ed74c70eb63c8e6dc6a91ada to your computer and use it in GitHub Desktop.
Devise UnknownFormat when sign_in with API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The fix is just adding | |
` | |
respond_to :json | |
` | |
to your custom SessionsController | |
The reason is that the parent session controller does not know how to respond when respond_with is being called. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment