#4615·devise

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:

ruby
def edit
  respond_with resource
end

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