Random numbers/characters for a spam preventer

hi, I’m doing a registration form with rails, is there any simple method
to do a spam preventer with a generator of random number/characters?
thanks :slight_smile:

I noted there was an article about it:
http://www.rubyonrailsblog.com/articles/2006/09/29/use-the-ruby-captcha-gem-for-rails-user-registration