Parsley.js is an awesome form validation library (documentation). This gem makes it easy to use it with Rails Asset Pipeline.
Add this line to your application's Gemfile:
gem "parsley-rails"
And then execute:
$ bundle
Add the following to your app/assets/javascripts/application.js
:
//= require jquery
//= require parsley
To use the extend
library, add this right after:
//= require parsley.extend
Finally, if you want to use a different i18n:
//= require parsley.i18n.fr
See the complete Parsley.js documentation.
The gem follows Parsley.js's versions. If the gem version is 1.1.10.0
, then 1.1.10
is a version of Parsley.js and 0
is a patch level of the gem itself.
- 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