Sha256: 8b999e313f9fe769215ca1293a2b0cf2ad0c65f0bf245703d8a06354d2e40611

Contents?: true

Size: 735 Bytes

Versions: 8

Compression:

Stored size: 735 Bytes

Contents

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

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

  <div class="field">
    <%= form.label :question %>
    <%= form.text_field :question %>
  </div>

  <div class="field">
    <%= form.label :answer %>
    <%= form.text_field :answer %>
  </div>

  <div class="field">
    <%= form.label :code %>
    <%= form.text_field :code %>
  </div>

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
antispam-0.2.0 app/views/antispam/challenges/_form.html.erb
antispam-0.1.7 app/views/antispam/challenges/_form.html.erb
antispam-0.1.5 app/views/antispam/challenges/_form.html.erb
antispam-0.1.4 app/views/antispam/challenges/_form.html.erb
antispam-0.1.3 app/views/antispam/challenges/_form.html.erb
antispam-0.1.2 app/views/antispam/challenges/_form.html.erb
antispam-0.1.1 app/views/antispam/challenges/_form.html.erb
antispam-0.1.0 app/views/antispam/challenges/_form.html.erb