Happy Phone Number 0.0.2

A Rails plugin to format phone number
Happy Phone Number - A demonstration that assumes you have a Contact model with a phone attribute.
  1 Screenshot
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)
...

last updated on:
May 10th, 2013, 12:54 GMT
price:
FREE!
developed by:
Xavier Nayrac
homepage:
github.com
license type:
MIT/X Consortium License 
category:
ROOT \ Utilities
Happy Phone Number
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT