Forum: Rails I18n Telephone number validation and formatting

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5a260099756d0d60d9ab3da5dcb9d994?d=identicon&s=25 Raffi Lipkin (raffil)
on 2009-10-12 17:22
Attachment: address_helper.rb (4 KB)
I'm working to build a telephone number validation and formatting
I'm attaching an address_helper I use for this.
I'd like to get comments on it.
The method is based on extending the country model by adding 4 integer
attributes: tel_min, tel_max, tel_area_min and tel_area_max which are
the minimum and maximum number of digits of the telephone number in each
country and the minimum and maximum number of digits in the telephone
area code.
Please comment.
This topic is locked and can not be replied to.