https://github.com/thadeu/phonemask-rails-brasil
jQuery Plugin para criar máscara de telefones formatados no brasil, com nono digito.
https://github.com/thadeu/phonemask-rails-brasil
Last synced: about 1 year ago
JSON representation
jQuery Plugin para criar máscara de telefones formatados no brasil, com nono digito.
- Host: GitHub
- URL: https://github.com/thadeu/phonemask-rails-brasil
- Owner: thadeu
- Created: 2016-07-25T17:57:03.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-25T18:20:39.000Z (almost 10 years ago)
- Last Synced: 2025-03-15T02:47:36.515Z (over 1 year ago)
- Language: Ruby
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Phonemask::Rails::Brasil
jQuery Plugin for mask phone number until 9 numbers.
Only for brazil numbers.
[](https://badge.fury.io/rb/phonemask-rails-brasil)
## Dependecies
Use in Ruby >= 1.9 and Ruby on Rails >= v4.X
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'phonemask-rails-brasil', '0.2.0'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install phonemask-rails-brasil -v '0.2.0'
## Usage
```javascript
//= require jquery.phonemask
```
Create data attribute in HTML tag.
```html
```
if you used SimpleForm, use:
```ruby
<%= f.input :telefone, input_html:{ data: {"phone-mask": true} } %>
```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/Thadeu/phonemask-rails-brasil.