public
Description: A Rails Plugin. For Taiwanese.
Homepage:
Clone URL: git://github.com/cfc/taiwan_helpers.git
taiwan_helpers / README
100644 26 lines (19 sloc) 0.542 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
= TaiwanHelpers
 
In some build-in helpers are made for US-Format.
So, I made some helpers for Taiwanese.
I will add more helpers in the future:)
 
 
== Usage
In View
<%= number_to_tw_phone("0987654321", :cellphone => true) %>
<%= number_to_tw_phone("0223456789", :delimiter => " ") %>
<%= number_to_tw_phone("087654321") %>
<%= number_to_tw_phone("089876543") %>
 
It will shows:
0987-654-321
(02)2345 6789
(08)765-4321
(089)876-543
 
== Author
Hsu Shih Chung (cfcsky@gmail.com)
 
== License
Copyright (c) 2008 CFC, released under the MIT license