search for: captcha_url

Displaying 1 result from an estimated 1 matches for "captcha_url".

2009 Apr 20
3
xxx.valid? still true after xxx.errors.add(...)?
Hi all I have the following code in my controller: if @comment.valid? captcha_url = "http://captchator.com/captcha/check_answer/#{captcha_code}/#{@comment.captcha}" result = open(captcha_url) unless result.read == "1" @comment.errors.add(:captcha, "Captcha wurde nicht korrekt eingegeben") raise "#{@comment.valid?}&qu...