You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using your gem on my ruby on rails project. Ruby: 2.6.8, Rails: 6.1.4.1. When I follow the steps in your README I cannot make use of the masks.
Can you please let me know how put the require in the application.js file?: this line: //= require jquery.mask. I think that is a comment one, but if I decomment I get an error, what is the correct format?
When I try to use $('#my_id').mask('999.999.999-99' ) in my javascript I get in the console: Uncaught TypeError: $(...).mask is not a function.
Thanks in advance. Regards
The text was updated successfully, but these errors were encountered:
I had the same issue. I was able to solve the problem by removing a duplicate jQuery call I had in my application.html.haml layout file. Then, I included jQuery in my application.js before the jquery.mask require line. Your application.js file would look like this:
Hello,
I'm using your gem on my ruby on rails project. Ruby: 2.6.8, Rails: 6.1.4.1. When I follow the steps in your README I cannot make use of the masks.
Can you please let me know how put the require in the application.js file?: this line: //= require jquery.mask. I think that is a comment one, but if I decomment I get an error, what is the correct format?
When I try to use$('#my_id').mask('999.999.999-99' ) in my javascript I get in the console: Uncaught TypeError: $ (...).mask is not a function.
Thanks in advance. Regards
The text was updated successfully, but these errors were encountered: