Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (12 sloc) 0.627 kB
--~~ Honeypot for Rails ~~--
Honeypot is spam protection. Your from has a e-mail field. It is
hidden with CSS. Only spam-bots are inhuman enough to fill out that
field. If it has data in it, the request is terminated.
Yay, easy spam protection!
--~~ Installing ~~--
1. ./script/plugin install git://
2. Add <%= f.honeypot %> to your `form_for`-forms.
3. Add ".attack_of_the_titans { display:none }" to your CSS.
You can configure the name of the hidden form field in an initializer:
Honeypot.form_field = :email
Written by August Lilleaas.
Jump to Line
Something went wrong with that request. Please try again.