DISQUS

DISQUS Hello! ruby on rails blog is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Format phone number in Rails

Started by ngng · Vor 10 Monate

Recently, I have needed to take a number string and format it to a phone number. This was a PITA in PHP, fortunately, Rails includes some methods that will make the formatting of phone numbers much easier.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 ... Continue reading »

1 comment

  • Nice posting...thanks. Was wondering how to deal with extensions, and decided to google on a whim rather than look at the Rails documentation like I often do...glad I did! This is much more pleasantly readable! :)

Add New Comment

Returning? Login