dockyard/client_side_validations-simple_form — pull request #12 by ansel1 (2012-11-05 20:45:23+00:00)
Title: Allow for error messages already being on the page due to server side rendering.

Check for existence of error message element. If not present, create it.
Call addClass on parent div in all cases. Ensures class is set regardless of pre-existing state. addClass takes care of not adding the same class multiple times.

Added test.

#11