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

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

<% end %>
<%= form.label :name, style: "display: block" %> <%= form.text_field :name %>
<%= form.label :lastname, style: "display: block" %> <%= form.text_field :lastname %>
<%= form.label :team_id, style: "display: block" %> <%= form.text_field :team_id %>
<%= form.label :points, style: "display: block" %> <%= form.number_field :points %>
<%= form.submit %>
<% end %>