Rails Real-Time Form Validation Plug-In uses AJAX to validate form data against a model in real-time. AJAX requests are made as the user is filling in form fields.
The download package now includes a sample rails application. It does not need a database to run, thanks to this. Simply execute ./script/server from the rtv_sample_app directory and point your bwoser to http://localhost:3000.
Download and extract the contents of 'the_plugin' directory to your 'vendor/plugins' directory. Please the the rtv_sample_app for more details.
In your controller:
In your view, after a form:
In your CSS (example):
/* !!HACK!! IE will not use this because it does not understand !important. Border is not needed for firefox, so make it 0px!*/
border-width: 0px !important;
/* Browser support may be limited here...*/
Known to work with:
· Rails 1.1.6
· FireFox 2
What's New in This Release:
· This release adds a sample application, some code cleanup and minor bugfixes, and some changes to the sample CSS.