Web Applications Development

LiveValidation with rails i18n

LiveValidation is a great tool to validate your form, syntax clear, easy and powerfull.

If you want to use your already translated i18n messages, you could use something like that :

var myfield = new LiveValidation( ‘theformfieldid’, {onlyOnSubmit: true } );
myfield.add( Validate.Presence, { failureMessage: “#{t(:”activerecord.errors.messages.empty")}", validMessage: ""} );

with any of the activerecord translated errors messages.

Comments

1
Fc532ccf021d86fcafbb8db5a42d46d9?s=45
LJ Gomez : 09 Jun 06:57

where is the reset to clear validation

Add comment

Name
Email
Url