README.md in humanizer-1.0.0 vs README.md in humanizer-2.0.0
- old
+ new
@@ -1,31 +1,31 @@
-Humanizer is a very simple CAPTCHA method. It has a table with questions and answers which is used to validate that the user is an actual human. Currently only Mysql an Sqlite3 are supported. Tested only on Rails 3.
+Humanizer is a very simple CAPTCHA method. It has a localized YAML file with questions and answers which is used to validate that the user is an actual human. Any model that includes ActiveModel::Validations should work. Our aim is to be database and mapper agnostic, so if it doesn't work for you, open an issue. Humanizer only works with Rails 3.
### Installation
1. gem install humanizer
2. rails g humanizer
-3. rake db:migrate
### Usage
-1. In your model add require_human_on method, example:
+1. In your model, include Humanizer and add the #require_human_on method, example:
class User < ActiveRecord::Base
+ include Humanizer
require_human_on :create
end
2. Ask the question in the form, example:
- <%= f.label :humanizer_question_answer, HumanizerQuestion.find(@user.humanizer_question_id).question, :class => "required" %>
- <%= f.text_field :humanizer_question_answer %>
- <%= f.hidden_field :humanizer_question_id, :value => @user.humanizer_question_id %>
+ <%= f.label :humanizer_answer, @model.humanizer_question %>
+ <%= f.text_field :humanizer_answer %>
+ <%= f.hidden_field :humanizer_question_id %>
### Configuration
Default translations can be found from config/locales/humanizer.en.yml
-You might want to add / change question and answer pairs. This can be easily done by adding / modifying entries in HumanizerQuestion model
+You might want to add / change question and answer pairs. This can be easily done by adding / modifying entries in locales file.
### Live sites
* [ArcticStartup.com](http://arcticstartup.com/) - signup form
\ No newline at end of file