From: Joshua Muheim Date: 2009-04-20T18:06:38+09:00 Subject: 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?}" end end Although I'm adding an error to :captcha, when I raise @comment.valid? on the next line this still gives me true! Why is that? I just added an error to @comment, didn't I?! Thanks Josh -- Posted via http://www.ruby-forum.com/.