<%= form_with(model: tem_test, local: true) do |form| %>
  <% if tem_test.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(tem_test.errors.count, "error") %> prohibited this tem_test from being saved:</h2>

      <ul>
      <% tem_test.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= form.label :name %>
    <%= form.text_field :name %>
  </div>

  <div class="field">
    <%= form.label :email %>
    <%= form.text_field :email %>
  </div>

  <div class="actions">
    <%= form.submit %>
  </div>
<% end %>
