public
Description: A Rails Plugin. For Taiwanese.
Homepage:
Clone URL: git://github.com/cfc/taiwan_helpers.git
cfc (author)
Fri Nov 14 14:44:03 -0800 2008
commit  898c6273575d0b136df2a43a288b87901b31f038
tree    d2764fddffc220b87b56883f9f18500034cd45c0
parent  c37a8024a97048f88821de3297c4ae9703d99582
name age message
file README Loading commit data...
file init.rb
directory lib/
README
= 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