JqueryValidation
This gem will validates the form asynchronously.
Installation
Add this line to your application's Gemfile:
gem 'jquery_validation'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jquery_validation
Usage
Execute:
$ rails g jquery_validation
Above command will add inline_validate.js file in your assets/javascripts folder and validation_controller.rb in controllers.
Add 'validate-form' class to the form 'check_validation' class to the attribute and 'submit-modal' class to the submit button.
Contributing
- 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