%= form_with(model: user) do |form| %>
<% if user.errors.any? %>
<%= pluralize(user.errors.count, "error") %> prohibited this user from being saved:
<% user.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= form.label :name, style: "display: block" %>
<%= form.text_field :name %>
<%= form.label :password, style: "display: block" %>
<%= form.text_field :password %>
<%= form.submit %>
<% end %>