<%= simple_form_for(resource,
as: resource_name,
url: registration_path(resource_name),
method: :put,
html: { autocomplete: 'off' }
) do |f| %>
<%= devise_error_messages! %>
<%= f.input :full_name, required: true %>
<%= f.input :email, required: true %>
leave blank if you don't want to change it
<%= f.input :password, label: false %>
we need your current password to confirm your changes
<%= f.input :current_password, label: false, required: true %>
<%= f.submit "Update", class: 'btn btn-primary' %>
<% end %>
<% if current_user.authentications.exists? %>
<%= render active_scaffold: "users/authentications" %>
<% end %>
Delete account
Danger zone!
If you delete your account all your data will be deleted!
<%= link_to "Delete my account!", registration_path(resource_name),
class: 'btn btn-danger',
confirm: "All your data will be deleted! Are you sure?",
method: :delete
%>