public
Fork of softprops/captcha_with_question
Clone URL: git://github.com/Radar/captcha_with_question.git
name age message
file MIT-LICENSE Mon Apr 21 18:28:07 -0700 2008 init commit [Doug]
file README Mon Apr 21 18:32:46 -0700 2008 updated readme [Doug]
file Rakefile Mon Apr 21 18:28:07 -0700 2008 init commit [Doug]
file init.rb Mon Apr 21 18:28:07 -0700 2008 init commit [Doug]
file install.rb Mon Apr 21 18:28:07 -0700 2008 init commit [Doug]
directory lib/ Mon Apr 21 18:28:07 -0700 2008 init commit [Doug]
directory tasks/ Mon Apr 21 18:28:07 -0700 2008 init commit [Doug]
directory test/ Mon Apr 21 18:32:46 -0700 2008 updated readme [Doug]
file uninstall.rb Mon Apr 21 18:28:07 -0700 2008 init commit [Doug]
README
IsQuestionable
==============

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

Example
=======

model

class Post < ActiveRecord::Base
  captchas_with_question
end

<h1>New post</h1>


view

<%= error_messages_for :post %>

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

  <p>
    <%= f.submit "Create" %>
  </p>
  
<% 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