Sha256: b6870e60a9a97442825e997f14be935d5994e8d366edfdd1e99e184d46e61006

Contents?: true

Size: 557 Bytes

Versions: 11

Compression:

Stored size: 557 Bytes

Contents

<%= form_with(model: comment,  data: { turbo: false }) do |form| %>
  <% if comment.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(comment.errors.count, "error") %> prohibited this comment from being saved:</h2>

      <ul>
        <% comment.errors.each do |error| %>
          <li><%= error.full_message %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= form.label :content %>
    <%= form.text_area :content %>
  </div>

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
censor_bear-0.1.29 test/dummy/app/views/comments/_form.html.erb
censor_bear-0.1.28 test/dummy/app/views/comments/_form.html.erb
censor_bear-0.1.27 test/dummy/app/views/comments/_form.html.erb
censor_bear-0.1.26 test/dummy/app/views/comments/_form.html.erb
censor_bear-0.1.25 test/dummy/app/views/comments/_form.html.erb
censor_bear-0.1.24 test/dummy/app/views/comments/_form.html.erb
censor_bear-0.1.23 test/dummy/app/views/comments/_form.html.erb
censor_bear-0.1.22 test/dummy/app/views/comments/_form.html.erb
censor_bear-0.1.21 test/dummy/app/views/comments/_form.html.erb
censor_bear-0.1.20 test/dummy/app/views/comments/_form.html.erb
censor_bear-0.1.19 test/dummy/app/views/comments/_form.html.erb