Sha256: a426763d1fd89effa643b48cc27f8ea15c8534bbd4a2554dbceffb15df0abebb

Contents?: true

Size: 767 Bytes

Versions: 7

Compression:

Stored size: 767 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

7 entries across 7 versions & 1 rubygems

Version Path
antispam-0.2.11 app/views/antispam/challenges/_form.html.erb
antispam-0.2.10 app/views/antispam/challenges/_form.html.erb
antispam-0.2.8 app/views/antispam/challenges/_form.html.erb
antispam-0.2.6 app/views/antispam/challenges/_form.html.erb
antispam-0.2.5 app/views/antispam/challenges/_form.html.erb
antispam-0.2.4 app/views/antispam/challenges/_form.html.erb
antispam-0.2.3 app/views/antispam/challenges/_form.html.erb