Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
rails-intl-tel-input
Advanced tools
Integrate with intl-tel-input to provide international telephone numbers input and form helper.
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
Make sure you required jQuery and add the following to /app/assets/javascripts/application.js:
//= require intlTelInput
Add the following to /app/assets/stylesheets/application.css:
/*
*= require intlTelInput
*/
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 %>
The gem is available as open source under the terms of the MIT License.
The project's website is located at https://github.com/emn178/rails-intl-tel-input
Author: Chen, Yi-Cyuan (emn178@gmail.com)
FAQs
Unknown package
We found that rails-intl-tel-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.