jQuery-Validation-Engine for rails project.
Add this line to your application's Gemfile:
gem 'jQuery-Validation-Engine-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jQuery-Validation-Engine-rails
*= require validationEngine.jquery
//= require jquery.validationEngine-zh_CN
//= require jquery.validationEngine
Form field: <%= f.text_field :name, :class => "span2 validate[required] text-input" %>
<script type="text/javascript">
$(document).ready(function(){
$("#form_id").validationEngine();
});
</script>
- 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