public
Description: First attempt at a rails plugin. A form captcha with a textual question.
Homepage:
Clone URL: git://github.com/softprops/captcha_with_question.git
name age message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
file init.rb Mon Apr 21 18:28:07 -0700 2008 init commit [Doug]
file install.rb
directory lib/ Mon Apr 21 18:28:07 -0700 2008 init commit [Doug]
directory tasks/
directory test/
file uninstall.rb
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

<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