rails 5.1 simple form

0

I am trying to put a mask on my simple form initially, I tried it as follows

:input_html => {:maxlength => 14, :"data-mask" => "999.999.999-99"} 

It did not work so I tried

:data => {:mask=> '999-999-9999'}

That also did not work. I'm using the simple form ... if anyone can help me agradesço from ja. I use rails version 5.1

    
asked by anonymous 07.03.2018 / 20:44

0 answers