Jquery::Validation::Rails
jQuery Validation for the Rails Asset Pipeline.
Installing this Gem
Add the following line to your project's Gemfile:
gem 'jquery-validation-rails'Run the following in your terminal:
cd ~/path/to/my/project
bundle installRequiring the Assets
Add, at least, the following to your JavaScript manifest file:
//= require jquery.validateIf you need the accept, creditcard, extension, phoneUS, or require_from_group additional methods, add this line too:
//= require jquery.validate.additional-methodsIf you'd like to take advantage of the library's built-in translations, add the ones you need:
//= require jquery.validate.localization/messages_es
//= require jquery.validate.localization/messages_deOr require all of them:
//= require_tree jquery.validate.localizationContributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request