Sha256: 0285403826700c0da8bc2f7b0616cd3a5154926df05d988c764ef53610599cf1

Contents?: true

Size: 982 Bytes

Versions: 14

Compression:

Stored size: 982 Bytes

Contents

<%= form_for(@subscription) do |f| %>
  <% if @subscription.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@subscription.errors.count, "error") %> prohibited this subscription from being saved:</h2>

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

  <div class="field">
    <%= f.label :name %><br>
    <%= f.text_field :name %>
  </div>

  <div class="field">
    <%= f.label :email %><br>
    <%= f.email_field :email %>
  </div>

	<%
		random_number_1 = rand(4)+1
		random_number_2 = rand(4)+1
	%>
	<div class="field">
		<%= label "antispam", "answer", "Spam bots can't do math. What is #{random_number_1} + #{random_number_2}?" %><br />
		<%= text_field "antispam", "answer" %><br />
		<%= hidden_field "antispam", "solution", value: random_number_1+random_number_2 %>
	</div>

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
proclaim-0.6.6 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.6.5 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.6.4 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.6.3 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.6.2 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.6.1 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.6.0 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.5.6 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.5.5 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.5.3 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.5.2 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.5.1 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.5.0 app/views/proclaim/subscriptions/_form.html.erb
proclaim-0.4.0 app/views/proclaim/subscriptions/_form.html.erb