bwyrosdick / less-captcha

less-captcha / README
92817d70 » bwyrosdick 2008-03-24 added README and performed ... 1 Less Captcha creates a user friendly, bot unfriendly image CAPTCHA alternative
2
3 == In the model
4
5 class User < ActiveRecord::Base
6 validates_captcha
7 end
8
9 == In the view
10
6bcfe61d » bwyrosdick 2008-03-25 broke apart the question fr... 11 <p>
12 Unless you are a bot answer this question: <%= captcha_display %>
266914ac » bwyrosdick 2008-03-25 fixed README typo 13 </p>
6bcfe61d » bwyrosdick 2008-03-25 broke apart the question fr... 14 <p>
15 <%= captcha_field("user") %>
16 </p>
17
18 == Generated HTML
19
20 <p>
21 Unless you are a bot answer this question: <span class='less_captcha_challenge'>What is 4 + 7?</span>
22 </p>
23 <p>
24 <input type="text" name="entry[captcha]" />
25 <input type="hidden" name="entry[captcha_answer]" value="e43b21e80194c61f30930a442f2c19de6fe74f8c" />
26 </p>