Saturday, February 10, 2018

ActionController::UnknownFormat (ActionController::UnknownFormat):

This happens with Devise when working with API only Rails app.
Solution: Add   respond_to :json in the controller.