Plugins - LiveValidation

StarAdd to favorites

LiveValidation is a plugin which allows automatic integration of your Rails application with Javascript library LiveValidation. This library implements client-side form validation and you can see a demo in its site.

This plugin generates the needed Javascript code to run client-side the validations you have already defined in your models (with Rails validation helpers) to run them server-side, and redefines form helpers to automaticaly include that Javascript code. You have not to write your validations twice so you can keep DRY. And if you have 1) used Rails validation helpers to validate your models, and 2) used Rails form helpers to create your forms, you only have to install this plugin to get your forms validated both server and client-side!

Sergio Gil

http://livevalidation.rubyforge.org/

svn://rubyforge.org/var/svn/livevalidation

Rails' (MIT)

  • Currently 4.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Model

Tags

Comments

Add a comment
Felipe Giotto 15 Oct 2007

Sometime ago, I was thinking about making a new plugin to do some JavaScript validation. But my idea was a little different. Maybe doing all the validations when clicking the submit button, showing an alert in the browser and blocking the submit action. This is a good approach too, but there's some minor details to be fixed, like when you have a not-null field (with validatespresenceof) and you leave it empty. The validation will only show the error message if you type something in the text field and then erase it. Another thing is: I found an e-mail validation in the LiveValidation JS library, but I couldn't use this validation in my model! Anyway, it's a good plugin and, if you want any help to translate it into portuguese, I'm available! (I just can't write much english, but I'm brazilian, so please excuse me for some primary errors!!! :D Felipe Giotto

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?