Forum: Ruby on Rails Add message to model validation errors

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Erik Dahlstrand (Guest)
on 2008-11-07 14:47
(Received via mailing list)
Hi!

I'm using CAPTCHA plugin (http://github.com/zendesk/captcha/tree).
When CAPTCHA validation fails the error message is added to
flash["error"].

How can I add the CAPTCHA error message to the model validation
messages? Also I would like the CAPTCHA text field to be wrapped in
<div class="fieldWithErrors">.

TIA!
/Erik
This topic is locked and can not be replied to.