This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Wed May 14 16:56:32 -0700 2008 | [wildchild] |
| |
README | Wed May 14 16:56:32 -0700 2008 | [wildchild] |
| |
README.rdoc | Wed May 14 16:56:32 -0700 2008 | [wildchild] |
| |
Rakefile | Wed May 14 16:56:32 -0700 2008 | [wildchild] |
| |
init.rb | Wed May 14 16:56:32 -0700 2008 | [wildchild] |
| |
install.rb | Wed May 14 16:56:32 -0700 2008 | [wildchild] |
| |
lib/ | Thu Jun 26 13:26:54 -0700 2008 | [wildchild] |
| |
tasks/ | Wed May 14 16:56:32 -0700 2008 | [wildchild] |
| |
test/ | Wed May 14 16:56:32 -0700 2008 | [wildchild] |
| |
uninstall.rb | Wed May 14 16:56:32 -0700 2008 | [wildchild] |
| |
yacaptcha.example.yml | Thu Jun 26 13:26:54 -0700 2008 | [wildchild] |
README.rdoc
= YacaptchaValidation Captcha validation inspired by http://blogs.ericmethot.com/captcha * Captcha images offline generation using a rake task; * It's stateless and does not require session data. == Setup Install plugin: script/plugin install git://github.com/wildchild/yacaptcha_validation.git Generate captcha images: rake yacaptcha:generate Example script for cron to run rake task: #!/bin/sh export PATH=$PATH:/home/#####/data/rubygems/bin:/home/#####/data/rubygems/gems/bin export RUBYLIB=/home/#####/data/rubygems/local/lib/site_ruby/1.8 export GEM_HOME=/home/#####/data/rubygems/gems cd $HOME/../../containers/rails/[app_name] echo "Generating captcha images..." rake yacaptcha:generate == Usage In model simply add validation check: validates_captcha :message => ... In view: <dt> <%= yacaptcha_image(comment, :title => 'Captcha image validation') %><br/> <label for="comment_captcha_validation">Enter text from image</label> </dt> <dd> <%= f.yacaptcha(:style => 'width: 250px') %> </dd> Copyright (c) 2008 Alexander Uvarov, released under the MIT license.





