0
someone help me with the simple form... I’m trying to put a mask on my simple form initially tried as follows
:input_html => {:maxlength => 14, :"data-mask" => "999.999.999-99"}
didn’t work so I tried
:data => {:mask=> '999-999-9999'}
which also did not work. I am using the simple form... if anyone can help me thank you from now on. I use version 5.1 of Rails
Try: date: { Mask: '999-999-9999' }
– AnthraxisBR
It didn’t work, these options seem to be correct you know if you have to activate something?
– Luiz Henrique
you imported the mask library ?
– AnthraxisBR
I didn’t quite understand it... if I did the Bundle?
– Luiz Henrique
this, which mask plugin you are using ?
– AnthraxisBR
I’m not using any mask plugin, I’m trying to access properties of Html5 that already has mask, I’m new to Rails if you have better things pfv recommend me rsrsr
– Luiz Henrique
You know how to include js files in your project ?
– AnthraxisBR
by the Asset pipeline in the.coffee file
– Luiz Henrique
I always use this jQuery plugin to make the masks: https://github.com/RobinHerbots/Inputmask very easy to use, if you can’t ask aq again
– AnthraxisBR