No commit activity in last 3 years
No release in over 3 years
A Rails version of jQuery Mask Plugin that make masks on form fields and HTML elements easy
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

~> 1.13
~> 10.0
 Project Readme

JQuery Mask for Rails

A Rails gem of the jQuery Plugin that make masks on form fields and HTML elements.

Build Status Code Climate

Installation

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

Usage

Russian

Compatibility

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).

Problems or Questions?

Before opening a new issue take a look on those frequently asked questions:

Problems with old versions of Android keyboard

Negative numbers, or currency related problems

Prefix or sufix on the Mask

Add validation?

Field type number, email not working?

Want to keep the placeholder as the user types?

Bugs?

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.

Contributing

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.

License

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

Credits

This is a gem version of JQuery mask.