vue_r/test/dummy/app/views/images/_form.html.erb

18 lines
404 B
Plaintext

<%= form_with(model: image) do |form| %>
<% if image.errors.any? %>
<div style="color: red">
<h2><%= pluralize(image.errors.count, "error") %> prohibited this image from being saved:</h2>
<ul>
<% image.errors.each do |error| %>
<li><%= error.full_message %></li>
<% end %>
</ul>
</div>
<% end %>
<div>
<%= form.submit %>
</div>
<% end %>