public
Description:
Homepage:
Clone URL: git://github.com/bwyrosdick/less-captcha.git
name age message
file LICENSE Mon Mar 24 23:32:02 -0700 2008 added README and performed minor cleanup [bwyrosdick]
file README Tue Mar 25 09:13:43 -0700 2008 fixed README typo [bwyrosdick]
file Rakefile Mon Mar 24 22:26:23 -0700 2008 first commit [bwyrosdick]
file init.rb Mon Mar 24 22:26:23 -0700 2008 first commit [bwyrosdick]
directory lib/ Tue Mar 25 09:10:46 -0700 2008 broke apart the question from the fields and up... [bwyrosdick]
directory tasks/ Mon Mar 24 22:26:23 -0700 2008 first commit [bwyrosdick]
directory test/ Mon Mar 24 22:26:23 -0700 2008 first commit [bwyrosdick]
README
Less Captcha creates a user friendly, bot unfriendly image CAPTCHA alternative

== In the model

class User < ActiveRecord::Base
  validates_captcha
end

== In the view

<p>
  Unless you are a bot answer this question: <%= captcha_display %>
</p>
<p>
  <%= captcha_field("user") %>
</p>

== Generated HTML

<p>
  Unless you are a bot answer this question: <span class='less_captcha_challenge'>What is 4 + 7?</span>
</p>
<p>
  <input type="text" name="entry[captcha]" />
  <input type="hidden" name="entry[captcha_answer]" value="e43b21e80194c61f30930a442f2c19de6fe74f8c" />
</p>