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.
- Host: GitHub
- URL: https://github.com/softprops/captcha_with_question
- Owner: softprops
- License: mit
- Created: 2008-04-22T01:29:07.000Z (about 18 years ago)
- Default Branch: master
- Last Pushed: 2008-12-17T19:54:34.000Z (over 17 years ago)
- Last Synced: 2024-05-09T09:45:07.168Z (about 2 years ago)
- Language: Ruby
- Homepage:
- Size: 82 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
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