README.rdoc in glebtv-simple_captcha-0.1.6 vs README.rdoc in glebtv-simple_captcha-0.2.0

- old
+ new

@@ -1,9 +1,8 @@ =SimpleCaptcha -This is a fork of wolcanus's fork of SimpleCaptcha to support Mongoid 3 and new formtastic. -This is a fork of galetahub SimpleCaptcha to support Mongoid. -Its implementation requires + +SimpleCaptcha is the simplest and a robust captcha plugin. Its implementation requires adding up a single line in views and in controllers/models. SimpleCaptcha is available to be used with Rails 3 or above and also it provides the backward compatibility with previous versions of Rails. ==Features @@ -23,23 +22,25 @@ * ImageMagick should be installed on your machine to use this plugin. visit http://www.imagemagick.org/script/index.php for more details. ==Installation - gem "glebtv-simple_captcha", :require => "simple_captcha" + gem "galetahub-simple_captcha", :require => "simple_captcha" or - gem 'glebtv-simple_captcha', :require => 'simple_captcha', :git => 'git://github.com/glebtv/simple-captcha.git' + gem 'galetahub-simple_captcha', :require => 'simple_captcha', :git => 'git://github.com/galetahub/simple-captcha.git' ==Setup After installation, follow these simple steps to setup the plugin. The setup will depend on the version of rails your application is using. rails generate simple_captcha + rake db:migrate + ==Usage ===Controller Based Add the following line in the file "app/controllers/application.rb" @@ -163,11 +164,18 @@ SimpleCaptcha.setup do |sc| sc.image_magick_path = '/usr/bin' # you can check this from console by running: which convert end +You can provide the path where should be stored tmp files. +It's usefull when you dont have acces to /tmp (default directory) + SimpleCaptcha.setup do |sc| + sc.tmp_path = '/tmp' # or somewhere in project eg. Rails.root.join('tmp/simple_captcha').to_s, make shure directory exists + end + + ===How to change the CSS for SimpleCaptcha DOM elements? You can change the CSS of the SimpleCaptcha DOM elements as per your need in this file. /app/views/simple_captcha/_simple_captcha.erb ===View's Examples @@ -202,11 +210,11 @@ simple_captcha: message: default: "Secret Code did not match with the Image" user: "The secret Image and code were different" -==The Original Author +==Who's who? Enjoy the simplest captcha implementation. Author: Sur @@ -216,6 +224,6 @@ Plugin Homepage: http://expressica.com/simple_captcha Plugin update for rails 3: http://github.com/galetahub -Any feedback/comment/issue/donation is welcome! \ No newline at end of file +Any feedback/comment/issue/donation is welcome!