RegistrationsController#edit does not respect Accept type
Author: timscottCreated Aug 14, 2017Updated Jun 22, 2026
RegistrationsController#edit renders a view without respect to the Accept type. Unless I'm missing something, it should be:
def edit
respond_with resource
endWith this change, it will serve JSON when requested, which is useful in the case of using Devise in an API, for example.
If correct, I'm happy to make a PR.
Source: heartcombo/devise