%= form_with(model: tem_test, local: true) do |form| %>
<% if tem_test.errors.any? %>
<%= pluralize(tem_test.errors.count, "error") %> prohibited this tem_test from being saved:
<% tem_test.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= form.label :name %>
<%= form.text_field :name %>
<%= form.label :email %>
<%= form.text_field :email %>
<%= form.submit %>
<% end %>