./script/plugin install git://github.com/augustl/live-validations.git
LiveValidations.use :livevalidation_dot_comto an initializer, or at the bottom of environment.rb. Make sure it is outside of the Rails::Initializer block.
:live_validations => trueto the forms you want to live validate. Example:
<% form_for(@user, :live_validations => true) %>
There are currently two defaults you can set for app-wide validation in your environment.rb file:
default_valid_message accepts a value for showing your user when their data passes validation. You can also set it to nil or an empty string.
validate_on_blur is a boolean that determines when validation occurs. A setting of
true means we validate on blur, after the user has tabbed out of the input, and a setting of
false (the default) validates live as she types. For example:
LiveValidations.use :livevalidation_dot_com, :default_valid_message => 'Thanks!', :validate_on_blur => true