Questions tagged [phonyrails]

This Gem adds useful methods to Rails app to validate, display and save phone numbers. It uses Phony gem (E164 international phone number normalizing, splitting, formatting).

This Gem adds useful methods to Rails app to validate, display and save phone numbers. It uses Phony gem(E164 numbers are international numbers with a country dial prefix, usually an area code and a subscriber number).

how to use this ? - add the below steps in application's Gemfile:

gem 'phony_rails'

And then execute:

bundle

Or you can also install it as:

gem install phony_rails

2 questions
3
votes
1 answer

How do I raise two errors with graphql-ruby?

I'm using the graphql-ruby gem and I have a mutation that updates a record. This is all working, but now I want to include the phony_rails gem to validate phone number. The problem As a dev with more FE experience, I'm not great with rails or ruby…
nyphur
  • 2,404
  • 2
  • 24
  • 48
0
votes
0 answers

How to know if a phone number is a domestic number or international one

I am using PhonyRails (Phony) and I am trying to achieve the following: If a domestic phone number is sent to me, I want to know whether its domestic or international. Why? Because if its domestic I want to convert it to the E164 standard. How can I…
Himberjack
  • 5,682
  • 18
  • 71
  • 115