<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,24 +1,25 @@
 module Honeypot
   module ControllerMethods
     def check_honeypots
-      return if honeypot_untouched?
-      flash[:notice] = 'You are a robot, or using some strange script.... no access for you..'
-      render :action =&gt; 'new'
+      return true if honeypot_untouched?
+      flash[:notice] = 'You are a robot, or using some strange script.... (if you are not, we overreacted, please contact us.)'
+      redirect_to :back
+      return false
     end
     
     def honeypot_untouched?
       submitted = params['its_so_sweet']
       return false if submitted.blank?
-      submitted['email'] == 'john@doe.com' &amp;&amp; submitted['name'] == '' &amp;&amp; submitted['agree']==nil
+      submitted['email'] == 'john@doe.com' &amp;&amp; submitted['name'] == '' &amp;&amp; submitted['agree'].blank?
     end
   end
   
   module ViewHelpers
     def honeypot
       content_tag('div', :style =&gt; 'position: absolute; left: -2000px;') do
-        text_field_tag('its_so_sweet[email]','john@doe.com') +
-        text_field_tag('its_so_sweet[name]','') + 
-        check_box_tag('its_so_sweet[agree]')
+        text_field_tag('its_so_sweet[email]','john@doe.com',:tabindex=&gt;900) +
+        text_field_tag('its_so_sweet[name]','',:tabindex=&gt;901) +
+        check_box_tag('its_so_sweet[agree]',1,false,:tabindex=&gt;902)
       end
     end
   end</diff>
      <filename>lib/honeypot.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0969cc5b132687cff3a45d3f114a2cf9810ff16d</id>
    </parent>
  </parents>
  <author>
    <name>grosser</name>
    <email>grosser.michael@gmail.com</email>
  </author>
  <url>http://github.com/grosser/honeypot/commit/8d783bd178a98eac64ce907d893797d3bfa4a5a4</url>
  <id>8d783bd178a98eac64ce907d893797d3bfa4a5a4</id>
  <committed-date>2008-11-07T00:21:01-08:00</committed-date>
  <authored-date>2008-11-07T00:21:01-08:00</authored-date>
  <message>checkbox with value but unchecked, high tabindex to prevent users tabbing into it</message>
  <tree>ee09cb3346198613948bc24f1970abbf8ccab010</tree>
  <committer>
    <name>grosser</name>
    <email>grosser.michael@gmail.com</email>
  </committer>
</commit>
