MaskedInputRails
This is a masked input plugin for the jQuery javascript library. It allows a user to more easily enter fixed width input where you would like them to enter the data in a certain format (dates,phone numbers, etc).
See more at: http://digitalbush.com/projects/masked-input-plugin/
Installation
Add this line to your application's Gemfile:
gem 'masked_input-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install masked_input-rails
Usage
In the application.js file add the following line to use latest version (1.3.1):
//= require jquery.maskedinput
or to specify plugin version:
//= require jquery.maskedinput-1.3
Supported versions
- jquery.maskedinput (1.3.1)
- jquery.maskedinput-1.3 (1.3)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request