Permalink
Browse files

added code blocks to readme

  • Loading branch information...
akonan committed Jun 26, 2010
1 parent 13cd806 commit 9517db56df0806b9b0b345453c18c2914567d588
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.md
View
@@ -10,17 +10,17 @@ Humanizer is a very simple CAPTCHA method. It has a table with questions and ans
1. In your model add require_human_on method, example:
-class User < ActiveRecord::Base
- require_human_on :create
+ class User < ActiveRecord::Base
+ require_human_on :create
-end
+ end
2. Ask the question in the form, example:
-<p><%= f.label :humanizer_question_answer, HumanizerQuestion.find(@user.humanizer_question_id).question, :class => "required" %>
-<%= f.text_field :humanizer_question_answer %></p>
+ <p><%= f.label :humanizer_question_answer, HumanizerQuestion.find(@user.humanizer_question_id).question, :class => "required" %>
+ <%= f.text_field :humanizer_question_answer %></p>
-<%= f.hidden_field :humanizer_question_id, :value => @user.humanizer_question_id %>
+ <%= f.hidden_field :humanizer_question_id, :value => @user.humanizer_question_id %>
### Configuration

0 comments on commit 9517db5

Please sign in to comment.