cfc / taiwan_helpers

A Rails Plugin. For Taiwanese.

This URL has Read+Write access

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