Hotwired wi[

This commit is contained in:
2021-09-22 16:40:20 +02:00
parent a0c72b0caf
commit 9a318249dc
21 changed files with 381 additions and 6 deletions

View File

@@ -0,0 +1,23 @@
<%= form_with(model: employer, id: dom_id(employer)) do |form| %>
<% if employer.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(employer.errors.count, "error") %> prohibited this employer from being saved:</h2>
<ul>
<% tweet.errors.each do |error| %>
<li><%= error.full_message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= form.label :name %>
<%= form.text_area :name %>
</div>
<div class="actions">
<%= form.submit %>
</div>
<% end %>