./bin/rails importmap:install

This commit is contained in:
Ryan W
2021-09-26 15:22:36 -07:00
parent 536a7d88cb
commit bea88d4d33
31 changed files with 484 additions and 19 deletions
+27
View File
@@ -0,0 +1,27 @@
<%= form_with(model: article) do |form| %>
<% if article.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(article.errors.count, "error") %> prohibited this article from being saved:</h2>
<ul>
<% article.errors.each do |error| %>
<li><%= error.full_message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= form.label :title %>
<%= form.text_field :title %>
</div>
<div class="field">
<%= form.label :text %>
<%= form.text_area :text %>
</div>
<div class="actions">
<%= form.submit %>
</div>
<% end %>