Skip to content
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.
Anuj Dutta edited this page Dec 16, 2016 · 2 revisions

This wiki document describes the gem and it's inner workings.

Purpose

This gem hopes to keep the bots/spammers at bay. It introduces a hidden field which is seen by the bots and hidden from the prospects. If the field is filled in, it adds an error to the resource/model (in most cases will be a user) and halts form submission.

Components

Model

The model component validate_captcha is just a class method. All this method does is adds a new validation definition to your activerecord model class.

View

The view component provides a new method called, captcha_in_reverse. All this method does is create a hidden field in your view bound to the resource where it's used.

Clone this wiki locally