diff --git a/app/views/users/registrations/edit.html.erb b/app/views/users/registrations/edit.html.erb index 1ac19f557..c27d23e93 100644 --- a/app/views/users/registrations/edit.html.erb +++ b/app/views/users/registrations/edit.html.erb @@ -18,8 +18,10 @@ <%= devise_error_messages! %> <% end %> - - <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, "data-for" => "avatar" }) do |f| %> + <%= form_for(resource, + as: resource_name, + url: registration_path(resource_name), + html: { method: :put, "data-for" => "avatar", id: 'user-avatar-field' }) do |f| %> <%= hidden_field_tag "user[change_avatar]", "true" %>