Radio Bantik:
Days in the Life of an Alpha Geek

Radio Bantik is an alpha-geek blog covering topics in Mac OS X, software and web development including Ruby on Rails, Java, Cocoa, and WebObjects, corporate survival, LEGO robotics, and other stuff important in the life of a technologist.

Captcha Gotcha

Posted February 23rd, 2008 in Ruby on Rails | Permanent Link

While implementing Sur Max’s excellent Simple Captcha plugin, I ran into a very frustrating issue. No matter what was entered, the valid_with_captcha? method always returned false.

After some digging I finally realized that there was a conflict with restful_authentication. The resolution is simple, luckily. You just need to add the following to your user controller:

attr_accessible :captcha, :captcha_key

That did it for me! Hopefully this will help someone else as well.


Leave a Reply