Do not use a mask js for each input

MarceloCajueiro edited this page Apr 19, 2012 · 1 revision
Clone this wiki locally

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