Recaptcha is a project mainly written in Ruby, it's free.
Simple recaptcha plugin for rails
Add reCAPTCHA validations to your rails forms.