public
Description:
Homepage:
Clone URL: git://github.com/bwyrosdick/less-captcha.git
commit  6bcfe61d4026e5e425a9c808792a80a8c03224f1
tree    343691b04a711ea021218c7573c0c2be0e6ae967
parent  92817d701a8389812d1472a339bbad47c96eaf99
name age message
file LICENSE Loading commit data...
file README
file Rakefile Mon Mar 24 22:26:23 -0700 2008 first commit [bwyrosdick]
file init.rb
directory lib/
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>