views:

682

answers:

5

I'd like to implement a captcha in a Rails project for a form submission, but I'm not sure what to go with. I'm inclining towards simplicity of implemention, and reliability when in use, over it being too sophisticated, as my application doesn't require too high a level of security.

Anyone have any recommendations?

thanks

A: 

I've used Recaptcha in one of my PHP project. http://recaptcha.net/
According to the site, it also has plugins for Ruby (http://recaptcha.net/resources.html). Although first ruby link didn't work, next link still works. http://svn.ambethia.com/pub/rails/plugins/recaptcha/ Check it.

Manjula
A: 

I've used ambethia recapchat for rails application. it most easy than other

Kuya
+1  A: 

The easiest way to add a CAPTCHA to your Rails application is using Ambethia reCAPTCHA:

1. Installation:

config.gem "ambethia-recaptcha", :lib => "recaptcha/rails", 
      :source => "http://gems.github.com"

You can install it as a plugin, too, if you like.

2. Get a reCAPTCHA account:

You have to create a reCAPTCHA key. You can do it on the reCAPTCHA site.

3. Usage:

Use recaptcha_tags to output the necessary HTML code and then verify the input with verify_recaptcha.

4. Further reading:

DR
A: 

reCAPTCHA for rails is great, in terms of functionality. However, if you require XHTML validation, RUN AWAY! This plugin does not (and probably never will) validate. I find it embarrassing that only one page on my entire site does not validate - it is the page with reCAPTCHA. If there was ANY other choice, I would take it.

tim
A: 

Hi tim, if you're after a CAPTCHA that validates, and is (almost) as easy to use as reCAPTCHA, please give my SlideCAPTCHA a try. (Wrote it a few days ago, needs some tests in real-life usage.) I based its deployment process on the reCAPTCHA plugin, but you can style it with CSS.

It does require Ruby/GD, however, so if you don't have GD already, I can't promise that GD is easy to install and use!

jimworm