<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -77,9 +77,9 @@ In the same controller include the following private method:
     private
       def setup_negative_captcha
         @captcha = NegativeCaptcha.new(
-          :secret =&gt; ::NEGATIVE_CAPTCHA_SECRET, #A secret key entered in environment.rb.  'rake secret' will give you a good one.
+          :secret =&gt; NEGATIVE_CAPTCHA_SECRET, #A secret key entered in environment.rb.  'rake secret' will give you a good one.
           :spinner =&gt; request.remote_ip, 
-          :fields =&gt; [:name, email, body], #Whatever fields are in your form 
+          :fields =&gt; [:name, :email, :body], #Whatever fields are in your form 
           :params =&gt; params)
       end
   &lt;/code&gt;
@@ -90,14 +90,11 @@ Modify your POST action(s) to check for the validity of the negative captcha for
 &lt;pre&gt;
   &lt;code&gt;
     def create
-      if @captcha.valid?
-        @comment = Comment.create(@captcha.values) #Decrypted params
-      end
-      
-      if @captcha.valid? &amp;&amp; @comment.valid?
+      @comment = Comment.new(@captcha.values) #Decrypted params
+      if @captcha.valid? &amp;&amp; @comment.save
         redirect_to @comment
       else
-        flash[:notice] = @captcha.error
+        flash[:notice] = @captcha.error if @captcha.error 
         render :action =&gt; 'new'
       end
     end</diff>
      <filename>README.textile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>330d206eab208b9f0bf7bffda23fb32dd70603de</id>
    </parent>
  </parents>
  <author>
    <name>Sean Roberts</name>
    <email>roberts.sean@gmail.com</email>
  </author>
  <url>http://github.com/subwindow/negative-captcha/commit/86cb81dffe47ee95770c2f72f893dfcdd98e0bb7</url>
  <id>86cb81dffe47ee95770c2f72f893dfcdd98e0bb7</id>
  <committed-date>2008-10-27T13:58:50-07:00</committed-date>
  <authored-date>2008-10-27T13:58:50-07:00</authored-date>
  <message>Fixed small errors in README and changed controller example</message>
  <tree>53a4a924cff80b72d529a4bcb138dba56fff4090</tree>
  <committer>
    <name>Sean Roberts</name>
    <email>roberts.sean@gmail.com</email>
  </committer>
</commit>
