Added loads

This commit is contained in:
Jeremy Caudle
2022-02-06 15:04:32 +00:00
parent 140921ce10
commit 055b79373c
42 changed files with 944 additions and 7 deletions

View File

@@ -0,0 +1,22 @@
<%= form_with(model: company) do |form| %>
<% if company.errors.any? %>
<div style="color: red">
<h2><%= pluralize(company.errors.count, "error") %> prohibited this company from being saved:</h2>
<ul>
<% company.errors.each do |error| %>
<li><%= error.full_message %></li>
<% end %>
</ul>
</div>
<% end %>
<div>
<%= form.label :name, style: "display: block" %>
<%= form.text_field :name %>
</div>
<div>
<%= form.submit %>
</div>
<% end %>