Rails 5.1 simple form

Asked

Viewed 71 times

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' }

  • It didn’t work, these options seem to be correct you know if you have to activate something?

  • you imported the mask library ?

  • I didn’t quite understand it... if I did the Bundle?

  • this, which mask plugin you are using ?

  • 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

  • You know how to include js files in your project ?

  • by the Asset pipeline in the.coffee file

  • 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

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.