Frederick Cheung wrote: > On Apr 20, 10:26�am, Joshua Muheim <[email protected]> > wrote: >> body: "", created_at: nil, updated_at: nil, commentable_type: >> @errors={"base"=>["Captcha wurde nicht korrekt eingegeben"]}>" >> >> Why the heck does ActiveRecord remove my custom errors when calling >> .valid??? > > Calling valid? recomputes the errors (there's no difference at the end > of the day between an error you added yourself and one from a 'normal' > validations. If you want to add errors yourself you should be doing so > from a validation > > Fred
OK, Thanks for the explanation :-) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

