Description
Happy Phone Number
Happy Phone Number is a cool open-source plugin for Rails that helps you easily format phone numbers from your Rails models. How great is that?
Supported Countries
Right now, it supports several countries like Belgium (:be), Denmark (:dk), France (:fr), and Iceland (:is). Just keep in mind, Happy Phone Number works best when phone numbers are saved with just the digits.
Installation Guide
If you want to add this gem to your project, here’s how:
gem 'happy_phone_number', :git => 'git://github.com/lkdjiin/happy_phone_number.git'
Add It to Your Model
Next up, you'll want to include the happy_phone_number method in your Rails model. Here’s a quick example:
class Contact < ActiveRecord::Base
attr_accessible :email, :name, :phone, :fax
happy_phone_number
end
Using Happy Phone Number in Views
Now that you’ve set it up, using it in your views is super simple! You can do something like this:
happy_phone(:fr)
happy_fax(:fr)
...
Download Happy Phone Number
User Reviews for Happy Phone Number FOR LINUX 7
-
Happy Phone Number for Linux is a handy tool for Rails developers to efficiently format phone numbers from models. Great for internationalization support.
-
Happy Phone Number is a game changer for Rails developers! Formatting phone numbers has never been easier.
-
This plugin is fantastic! It simplifies phone number formatting and supports multiple countries effortlessly.
-
I love Happy Phone Number! It's easy to integrate and works flawlessly in my Rails applications. Highly recommend!
-
A must-have for any Rails project dealing with international phone numbers. Simple, effective, and open source!
-
Happy Phone Number has saved me so much time! Formatting phone numbers is now a breeze. Five stars all the way!
-
Incredible plugin! The setup was straightforward, and it works perfectly with my models. Love this tool!