public
Description: Rails: Simple honeypots
Homepage:
Clone URL: git://github.com/grosser/honeypot.git
commit  8d783bd178a98eac64ce907d893797d3bfa4a5a4
tree    ee09cb3346198613948bc24f1970abbf8ccab010
parent  0969cc5b132687cff3a45d3f114a2cf9810ff16d
name age message
file README.markdown Loading commit data...
file init.rb
directory lib/
README.markdown

What it is

A simple plugin to provide honeypots and the necessary validations. It add fields to your forms, empty and filled, then checks if there values are unchanged.

Install

script/plugin install git://github.com/grosser/honeypot.git

Usage

Controller:

before_filter :check_honeypots, :only => [:create]

OR - if the default render new + flash[:error] is not what you want

def create
  render :action=>'error' and return unless honeypot_untouched?
  ...
end

Inside form:

=honeypot 

Other solutions

If you want more sophisticated protection, (on cost of maintainability and usability) try the negative_captcha plugin