Sha256: d4a2c5e11dec567ec9548ef1febe60d32a56666d72a23c64231781c6b87d03ba

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

= ankh

Ankh is the ancient Egyptian sign of life. 

Use Ankh in your Rails (2.3.x or 3.0) projects to protect against bots and other spam producers. It asks a simple
arithmatic question to verify that the poster is human.

In your model:

    validates_human :on => :create

In your view (Rails 2 syntax shown below):

    <%- obj.generate_human_question %>
    <%- form_for obj do |f| -%>
      <%= f.label :human_answer, obj.human_question %>
      <%= f.text_field :human_answer %>
      <%= f.hidden_field :salted_human_answer %>
    <%- end -%>

== TODO

* Nice form helpers
* I18n support
* automated testing of Rails 2.3.x vs. 3.0
 
== Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

== Copyright

Copyright (c) 2010 Dan Pickett. See LICENSE for details.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ankh-0.1.3 README.rdoc
ankh-0.1.2 README.rdoc
ankh-0.1.1 README.rdoc
ankh-0.1.0 README.rdoc