TypeError: 'undefined' is not an object (evaluating 'ClientSideValidations.formBuilders[settings.type].add')
Hi,
trying to use it with mongoid and simple form, I have this error: TypeError: 'undefined' is not an object (evaluating 'ClientSideValidations.formBuilders[settings.type].add')
generated js: window.ClientSideValidations.forms['new_user'] = {"type":"SimpleForm::FormBuilder","input_tag":"<span id="input_tag" />","label_tag":"<label id="label_tag" />","validators":{"user[email]":{"presence":{"message":"translation missing: en.mongoid.errors.models.user.attributes.email.presence"},"uniqueness":{"message":"translation missing: en.mongoid.errors.models.user.attributes.email.uniqueness"},"length":{"messages":{"minimum":"is too short (minimum is 2 characters)","maximum":"is too long (maximum is 4 characters)"},"minimum":2,"maximum":4}}}};
I tried with mongoid 2 and 3, and client side validation 3.1 and direct from git repo...
Thanks for help...
I just ran into the same thing at least with 3.2-beta. With the new versions you now need a separate gem to work with simple_form: https://github.com/dockyard/client_side_validations-simple_form
I'm closing this as I believe it is fixed with https://github.com/dockyard/client_side_validations-simple_form