This Gem adds useful methods to your Rails app to validate, display and save phone numbers. It uses the super awesome Phony gem (https://github.com/floere/phony).
MIT License
556
stars
111
forks
source link
Validates extension and then after normalize it fails validation #203
Given the number:
1 (432) 234-9838 #5426
The use of:
will validate the number before save, then normalize it into
+14322349838 x5426
, and then when attempting to save it it fails its own validation.This is my custom Validator I wrote to get around this issue:
and I use it with: