Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/technohippy/captcha-on-iknow
Automatically exported from code.google.com/p/captcha-on-iknow
https://github.com/technohippy/captcha-on-iknow
Last synced: 19 days ago
JSON representation
Automatically exported from code.google.com/p/captcha-on-iknow
- Host: GitHub
- URL: https://github.com/technohippy/captcha-on-iknow
- Owner: technohippy
- License: mit
- Created: 2015-03-13T03:51:32.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-13T05:49:33.000Z (almost 10 years ago)
- Last Synced: 2024-11-24T22:42:01.826Z (3 months ago)
- Language: Ruby
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
Awesome Lists containing this project
README
Captch on iKnow!
================How To Use
----------1. Generate some files
./script/generate captcha_on_iknow [your iknow account]2. Include some javascripts and stylesheets
(ex)
<%= 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
(ex)
class PostsController < ApplicationController
iknow_captcha_check :only => ['create', 'update']
# snip...4. Set a captcha field in views
(ex)
<%= iknow_captcha_field %>Copyright (c) 2008 ANDO Yasushi, released under the MIT license