jquery_mask_rails
jquery_mask_rails copied to clipboard
[Uncaught TypeError: ...mask is not a function] Rails 6.1 setup
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