Error with lazy loading rails.validations.js #451

ermolaev opened this Issue Dec 21, 2012 · 1 comment


None yet
2 participants

I'm using for lazy loading js files

jQuery ->
    yepnope [
        test    :   ($('form[data-validate=true]').length > 0)
        yep     :   ['/assets/m_validation.js']

where m_validation.js

 = require rails.validations
 = require rails.validations.formtastic
 = require rails.validations.simple_form
 = require client_side_validations_advance

and get this error

TypeError: ClientSideValidations.selectors is undefined
m_validation.js (line 118)  

return $(ClientSideValidations.selectors.forms).validate();

tagliala commented Jan 20, 2017


I'm closing very old issues, hoping that they are not issues anymore.

If you are still having troubles, please open a new issue

tagliala closed this Jan 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment