Sha256: 533c330871545732075800cec6acb2b21547e7f382d6e2876702912b47cf8bee

Contents?: true

Size: 426 Bytes

Versions: 3

Compression:

Stored size: 426 Bytes

Contents

<%= form_with(model: bar, local: true) do |form| %>
  <% if bar.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(bar.errors.count, "error") %> prohibited this bar from being saved:</h2>

      <ul>
      <% bar.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="actions">
    <%= form.submit %>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sandboxy-1.1.1 examples/rails_example/app/views/bars/_form.html.erb
sandboxy-1.1.0 examples/rails_example/app/views/bars/_form.html.erb
sandboxy-1.0.0 examples/rails_example/app/views/bars/_form.html.erb