You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
666 B
28 lines
666 B
<%= 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 %>
|