Skip to content

Do not use a mask js for each input

MarceloCajueiro edited this page Apr 19, 2012 · 1 revision

Replace the mask js for each input with only a mask validate.

validates :phone, :mask => '9999-9999'

Only this is necessary to the input have mask without a specific js.

More info

Clone this wiki locally