Happy Phone Number

  78 downloads
0.0.2 MIT/X Consortium License    
  n/a
A Rails plugin to format phone number

description

download

1  

specifications

Happy Phone Number is an open source plugin for Rails, allowing users to effortlessly format phone numbers from Rails models.

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.

Installation instructions:

gem 'happy_phone_number', :git => 'git://github.com/lkdjiin/happy_phone_number.git'

Usage instructions:

Add the happy_phone_number method in your Rails model, like this:

class Contact < ActiveRecord::Base
 attr_accessible :email, :name, :phone, :fax
 happy_phone_number
end


Now, in your views, you can use:

happy_phone(:fr)
happy_fax(:fr)
...
READ MORE   
Last updated on May 10th, 2013
1  
Happy Phone Number - A demonstration that assumes you have a Contact model with a phone attribute.

0 User reviews so far.

SUBMIT