Error with lazy loading rails.validations.js #451

Closed
ermolaev opened this Issue Dec 21, 2012 · 1 comment

Comments

Projects
None yet
2 participants

I'm using https://github.com/SlexAxton/yepnope.js 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();
Contributor

tagliala commented Jan 20, 2017

Hi,

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