Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rails-intl-tel-input

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rails-intl-tel-input

  • 0.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

rails-intl-tel-input

Build Status Coverage Status

Integrate with intl-tel-input to provide international telephone numbers input and form helper.

Installation

Add this line to your application's Gemfile:

gem 'rails-intl-tel-input'

And then execute:

bundle

Or install it yourself as:

gem install rails-intl-tel-input

Usage

Require Javascript

Make sure you required jQuery and add the following to /app/assets/javascripts/application.js:

//= require intlTelInput

Require CSS

Add the following to /app/assets/stylesheets/application.css:

/*
 *= require intlTelInput
 */

Helpers

You can use intl_tel_input_tag and intl_tel_input.

<%= intl_tel_input_tag(name, value, intl_tel_input_options, html_options) %>
<%= intl_tel_input_tag(:tel, 'red', {:allowDropdown => false}, {:class => 'tel'}) %>
<%= intl_tel_input_tag(:tel) %>

or form builder

<% form_for @item do |f| %>
<%= f.intl_tel_input(method, intl_tel_input_options, html_options) %>
<%= f.intl_tel_input(:tel, {:allowDropdown => false}, {:class => 'tel'}) %>
<%= f.intl_tel_input(:tel) %>
<% end %>

License

The gem is available as open source under the terms of the MIT License.

Contact

The project's website is located at https://github.com/emn178/rails-intl-tel-input
Author: Chen, Yi-Cyuan (emn178@gmail.com)

FAQs

Package last updated on 31 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc