Displaying 2 results from an estimated 2 matches for "validate_phone".
2006 Apr 21
11
Phone Numbers in Rails/MySQL
Is there any easy way to make a fancy looking form to take phone
numbers. Something that looks like this:
[ ] - [ ] - [ ] ext: [ ]
Then when you submit it it''s combined into one string in the database.
Optimally it would auto-switch from field-to-field after you fill each
field.
Has anyone seen anything like this in Rails?
Thanks,
Adam
--
Posted via
2006 Jul 11
17
[Best Practices] phone numbers??
I''ve seen phone numbers handled many different ways. Is there a recommended
Rails way to store, format and display phone numbers? I''d appreciate
comments from the community on this.
1. Is it better to store phone number as a 10-digit string? Then format it
as desired when displaying it?
2. or, is it better to store with formatting, ie. "(222) 111-2222" ?
3. Is