We have n-number of divs on the page with the same class name.
Foo is invalid
If you upgrade to Watir 2.0 or if you use watir-webdriver gem, this would return all divs that have class errors and text (exactly) Foo is invalid (if that is what you want to do):
errors
browser.divs(:class => "errors", :text => "Foo is invalid")