Ruby-on-rails – AJAX Rails Validation

ajaxruby-on-railsvalidation

I have my form and validation working great with regular http requests. I would like it to use AJAX. I know i can validate on the client side but that seems redundant given that I have defined the validations in my model.

As the user is filling out the form, I'd like to give feedback to them on their entries. What is the best way to use the rails defined validations in an AJAX form and give live feedback?

Best Answer

Check out the live-validations plugin. There's also an introductory screencast.