 <p>Because flash[] is an array you could delete element inside it. When we use recaptcha gem, the flash array contain <strong>recaptcha_error</strong> element, so you just only delete this element with : <strong>flash.delete(:recaptcha_error)</strong> inside your controller.</p> <p>For example :</p> <pre><code>if verify_recaptcha(:model=&gt;@object,:message=&gt;"Verification code is wrong", :attribute=&gt;"verification code") &amp;&amp; @object.save #your code if succes else flash.delete(:recaptcha_error) #your code if its fail end </code></pre> <p>Maybe it could help you. Thanks</p>