public
Description:
Homepage:
Clone URL: git://github.com/bwyrosdick/less-captcha.git
less-captcha / README
100644 26 lines (20 sloc) 0.578 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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>