资 源 简 介
CAPTCHA based on iKnow! API
Live Demo
http://apps.technohippy.net/captchaoniknow_demos
How to Get
cd vendor/pluginssvn export http://captcha-on-iknow.googlecode.com/svn/trunk/ captcha_on_iknow
How to Use
1. Generate files
./script/generate captcha_on_iknow [your iknow account]
2. Include javascripts and a stylesheet
<%= javascript_include_tag :defaults %> <%= stylesheet_link_tag "captcha_on_iknow" %> <%= captcha_on_iknow_js_tag %>
3. Set a before filter at the controller in whose views the captcha is used
class PostsController < ApplicationController iknow_captcha_check :only => ["create", "update"] # snip...
4. Set a captcha field in views
<%= iknow_captcha_field %>
How it looks
New posts
<