Sha256: f52ad27bec7f866fdb7187617c057f546c0765711d8aae5767976a7b3dc2d5da

Contents?: true

Size: 447 Bytes

Versions: 6

Compression:

Stored size: 447 Bytes

Contents

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

      <ul>
        <% string.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/strings/_form.html.erb
lesli_babel-0.5.0 app/views/lesli_babel/strings/_form.html.erb
lesli_babel-0.4.0 app/views/lesli_babel/strings/_form.html.erb
lesli_babel-0.3.0 app/views/lesli_babel/strings/_form.html.erb
lesli_babel-0.2.0 app/views/lesli_babel/strings/_form.html.erb
lesli_babel-0.1.0 app/views/lesli_babel/strings/_form.html.erb