softprops / captcha_with_question
captcha_with_question
PublicFirst attempt at a rails plugin. A form captcha with a textual question.
13 filesupdated Jun 18, 2026
files9Download
./libJun 16, 2026./tasksJun 16, 2026./testJun 16, 2026init.rbJun 16, 2026install.rbJun 16, 2026MIT-LICENSEJun 16, 2026RakefileJun 16, 2026READMEJun 18, 2026uninstall.rbJun 16, 2026README
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