Happy Phone Number 0.0.2
A Rails plugin to format phone number
At the moment it supports the following countries: Belgium (:be), Denmark (:dk), France (:fr) and Iceland (:is). Happy Phone Number works only if the phone number is saved with digits.
gem 'happy_phone_number', :git => 'git://github.com/lkdjiin/happy_phone_number.git'
Add the happy_phone_number method in your Rails model, like this:
class Contact < ActiveRecord::Base
attr_accessible :email, :name, :phone, :fax
Now, in your views, you can use: