Sha256: 6e233a6a46f235d2506d28565e0b7690f9c2147233821a550586309853b119c5

Contents?: true

Size: 447 Bytes

Versions: 6

Compression:

Stored size: 447 Bytes

Contents

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lesli_babel-0.6.0 app/views/lesli_babel/modules/_form.html.erb
lesli_babel-0.5.0 app/views/lesli_babel/modules/_form.html.erb
lesli_babel-0.4.0 app/views/lesli_babel/modules/_form.html.erb
lesli_babel-0.3.0 app/views/lesli_babel/modules/_form.html.erb
lesli_babel-0.2.0 app/views/lesli_babel/modules/_form.html.erb
lesli_babel-0.1.0 app/views/lesli_babel/modules/_form.html.erb