<% content_for :before_content do %> <%= govuk_back_link( text: 'Back', href: :back, ) %> <% end %> <%= form_for(current_user, as: :user, url: account_update_path(), html: { method: :patch }) do |f| %>

Change your personal details

<%= f.label :name, class: "govuk-label" %> <%= f.text_field :name, autocomplete: "name", class: "govuk-input" %>
<%= f.label :email, class: "govuk-label" %> <%= f.email_field :email, autocomplete: "email", class: "govuk-input" %>
<%= f.submit "Save changes", class: "govuk-button" %>
<% end %>