<%= form_with(model: user) do |form| %> <% if user.errors.any? %>

<%= pluralize(user.errors.count, "error") %> prohibited this user from being saved:

<% end %>
<%= form.label :name, style: "display: block" %> <%= form.text_field :name %>
<%= form.label :password, style: "display: block" %> <%= form.text_field :password %>
<%= form.submit %>
<% end %>