What are some good ways of doing validation with AJAX in Rails (with Prototype/Scriptaculous)? I have some Ajax.InPlaceEditors, and I would like the page with the editors on it to display errors if the data given is e.g. too short, too long, wrong format... Ideally, this should be DRY in regard to the validators. A related question: is there any way of DRY between the database table field constraints and validators? That is, can you make your model automatically pick up on e.g. maxlength based on the table field's varchar length?
on 2006-01-13 11:30
on 2006-05-15 17:39
Try out this plugin I created.... http://railsrtv.rubyforge.org/ -- View this message in context: http://www.nabble.com/Validation-with-AJAX-how-to-... Sent from the RubyOnRails Users forum at Nabble.com.
on 2006-05-15 18:07