public
Clone URL: git://github.com/bwyrosdick/less-captcha.git
Search Repo:
name age message
folder LICENSE Mon Mar 24 23:32:02 -0700 2008 added README and performed minor cleanup [bwyrosdick]
folder README Tue Mar 25 09:13:43 -0700 2008 fixed README typo [bwyrosdick]
folder Rakefile Mon Mar 24 22:26:23 -0700 2008 first commit [bwyrosdick]
folder init.rb Mon Mar 24 22:26:23 -0700 2008 first commit [bwyrosdick]
folder lib/ Tue Mar 25 09:10:46 -0700 2008 broke apart the question from the fields and up... [bwyrosdick]
folder tasks/ Mon Mar 24 22:26:23 -0700 2008 first commit [bwyrosdick]
folder 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>