Hi there

Parsley bootstrap form validation in Rails 3

$('form').parsley(                                                                            
    {                                                                                         
        // basic data-api overridable properties here..                                       
        inputs: 'input, textarea, select'                                                     
        , excluded: 'input[type=hidden]'                                                      
        , trigger: false                                                                      
        , focus: 'first'                                                                      
        , validationMinlength: 3                                                              
        , successClass: 'success'                                                             
        , errorClass: 'error'                                                                 
        , validators: {}                                                                      
        , messages: {}                                                                        

        //some quite advanced configuration here..                                            
        , validateIfUnchanged: false                                                          
        , errors: {                     // specify where parsley error-success classes are set
        classHandler: function (el) {                                                         
            return jQuery(el).closest('.control-group');                                      
        }                                                                                     
        , container: function ( elem, isRadioOrCheckbox ) {}                                  
        , errorsWrapper: ''                                                      
        , errorElem: '

‘ } , listeners: { onFieldValidate: function ( elem, ParsleyField ) { return false; } , onFormSubmit: function ( isFormValid, event, ParsleyForm ) {} , onFieldError: function ( elem, constraints, ParsleyField ) {} , onFieldSuccess: function ( elem, constraints, ParsleyField ) {} } } );