# Recaptcha plugin problem

**URL:** <https://www.ruby-forum.com/t/recaptcha-plugin-problem/167860>\
**Category:** Rails\
**Created:** [May 13, 2009, 11:54am UTC](https://www.ruby-forum.com/t/recaptcha-plugin-problem/167860 "2009-05-13T11:54:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![engSIlian\_Iliev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@engSIlian\_Iliev](https://www.ruby-forum.com/u/engSIlian_Iliev)\
**Post date:** [May 13, 2009, 11:54am UTC](https://www.ruby-forum.com/t/recaptcha-plugin-problem/167860/1 "2009-05-13T11:54:24Z")

</div>

Hi all,

I am using radiant CMS and I am trying to create custom extension and  
add recaptcha validation to it  
but when I call  
if not verify\_recaptcha(:private\_key =\> ‘aaaaaaaaaaa’)  
#add error  
end  
I get: undefined method `verify\_recaptcha’ for #Comment:0x4f4c460

Bellow is the full code for my model class

class Comment \< ActiveRecord::Base

validates\_presence\_of :title, :author, :comment, :message =\>  
‘required’

validate :check\_captcha

def check\_captcha  
if not verify\_recaptcha(:private\_key =\> ‘aaaaaaaaaaa’)  
errors.add(:title, ‘def error’);  
end  
end

end

Please someone help

10x in adance,  
Ilian Iliev
