A Rails gem of the jQuery Plugin that make masks on form fields and HTML elements.
Add this line to your application's Gemfile:
gem 'jquery_mask_rails', '~> 0.1.0'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jquery_mask_rails
And then insert into your application.js
//= require jquery.mask
jQuery Mask Plugin has been tested with jQuery 1.7+ on all major browsers:
- Firefox 2+ (Win, Mac, Linux);
- IE7+ (Win);
- Chrome 6+ (Win, Mac, Linux, Android, iPhone);
- Safari 3.2+ (Win, Mac, iPhone);
- Opera 8+ (Win, Mac, Linux, Android, iPhone).
Before opening a new issue take a look on those frequently asked questions:
Did you read our docs? Yes? Cool! So now... make sure that you have a functional jsfiddle exemplifying your problem and open an issue for us. Don't know how to do it? Use this fiddle example.
Bug reports and pull requests are welcome on GitHub at https://github.com/maurcarvalho/jquery_mask_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
This is a gem version of JQuery mask.