Skip to content

Instantly share code, notes, and snippets.

@samgooi4189
Created November 7, 2020 03:30
Show Gist options
  • Save samgooi4189/1abc04d0ed74c70eb63c8e6dc6a91ada to your computer and use it in GitHub Desktop.
Save samgooi4189/1abc04d0ed74c70eb63c8e6dc6a91ada to your computer and use it in GitHub Desktop.
Devise UnknownFormat when sign_in with API
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