Skip to content
jQuery Validation for the Rails Asset Pipeline.
Ruby
Branch: master
Clone or download
Latest commit e3b1504 Feb 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Release version 1.19.0 Feb 15, 2019
vendor/assets/javascripts Release version 1.19.0 Feb 15, 2019
.gitignore Update gitignore Dec 28, 2016
Gemfile initiali report Sep 25, 2012
LICENSE fix compatibility with rails >= 4 Jan 13, 2014
README.md Update README.md (#29) May 9, 2017
Rakefile initiali report Sep 25, 2012
jquery-validation-rails.gemspec Release version 1.19.0 Feb 15, 2019

README.md

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 install

Requiring the Assets

Add, at least, the following to your JavaScript manifest file:

//= require jquery.validate

If you need the accept, creditcard, extension, phoneUS, or require_from_group additional methods, add this line too:

//= require jquery.validate.additional-methods

If 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_de

Or require all of them:

//= require_tree jquery.validate.localization

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
You can’t perform that action at this time.