Sha256: 7c9cd23c9547050156bca7744b82a33262770259630a3c7112b05b0f2303aa89

Contents?: true

Size: 426 Bytes

Versions: 3

Compression:

Stored size: 426 Bytes

Contents

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

      <ul>
      <% foo.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/foos/_form.html.erb
sandboxy-1.1.0 examples/rails_example/app/views/foos/_form.html.erb
sandboxy-1.0.0 examples/rails_example/app/views/foos/_form.html.erb