<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,6 +13,14 @@ Controller:
 
     before_filter :check_honeypots, :only =&gt; [:create]
     
+    OR - if the default render new + flash[:error] is not what you want
+  
+    def create
+      render :action=&gt;'error' and return unless honeypot_untouched?
+      ...
+    end
+
+    
 Inside form:
  
     =honeypot </diff>
      <filename>README.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,15 @@
 module Honeypot
   module ControllerMethods
     def check_honeypots
-      submitted = params['its_so_sweet']
-      is_human = submitted['email'] == 'john@doe.com' &amp;&amp; submitted['name'] == '' &amp;&amp; submitted['agree']==nil
-      return if is_human
+      return if honeypot_untouched?
       flash[:notice] = 'You are a robot, or using some strange script.... no access for you..'
       render :action =&gt; 'new'
     end
+    
+    def honeypot_untouched?
+      submitted = params['its_so_sweet']
+      submitted['email'] == 'john@doe.com' &amp;&amp; submitted['name'] == '' &amp;&amp; submitted['agree']==nil
+    end
   end
   
   module ViewHelpers</diff>
      <filename>lib/honeypot.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e80c53a78500b77c5f5325fc36c1fbe3b7679420</id>
    </parent>
  </parents>
  <author>
    <name>micha</name>
    <email>grosser.michael@gmail.com</email>
  </author>
  <url>http://github.com/grosser/honeypot/commit/d737d5fee6460837f7e116369302159890e44334</url>
  <id>d737d5fee6460837f7e116369302159890e44334</id>
  <committed-date>2008-10-06T08:50:50-07:00</committed-date>
  <authored-date>2008-10-06T08:50:50-07:00</authored-date>
  <message>readme</message>
  <tree>cd7e73533d2ffb62764f36c0844f890ca86aa5c7</tree>
  <committer>
    <name>micha</name>
    <email>grosser.michael@gmail.com</email>
  </committer>
</commit>
