An open API service indexing awesome lists of open source software.

https://github.com/softprops/captcha_with_question

First attempt at a rails plugin. A form captcha with a textual question.
https://github.com/softprops/captcha_with_question

Last synced: 8 months ago
JSON representation

First attempt at a rails plugin. A form captcha with a textual question.

Awesome Lists containing this project

README

          

captcha_with_question
=====================

Think customizable captcha's minus the image. Just simple logic. RMagic not required.

Example
=======

model

class Post < ActiveRecord::Base
captchas_with_question
end

New post

view

<%= error_messages_for :post %>

<% form_for(@post) do |f| %>
....

<%= questionable_fields(f) %>


<%= f.submit "Create" %>



<% end %>

controller

class PostsController < ApplicationController

before_filter :assign_captcha_question, :only => [:new]
...
end

Copyright (c) 2008 softprops, released under the MIT license
inspired by github's nakajima's rails-math-capcha