augustl / live-validations

No longer maintained.

This URL has Read+Write access

August Lilleaas (author)
Sat Feb 28 02:53:11 -0800 2009
commit  d9b356a1fe95d4bdeeeb9c777047c506bd4ef6e5
tree    1ec68e7a4f9b5c0c3fbeb0f203ef518f6dc1516c
parent  2f2bbc089dd049a66847eb181b65b95ce13e88ad
name age message
file .gitignore Wed Jan 28 12:37:25 -0800 2009 Initial commit. [August Lilleaas]
file .gitmodules Loading commit data...
file MIT-LICENCE Wed Jan 28 12:37:25 -0800 2009 Initial commit. [August Lilleaas]
file README
file Rakefile Thu Feb 05 01:43:49 -0800 2009 Bumping the tests and the rails stub test app i... [August Lilleaas]
directory app/ Thu Feb 26 10:40:47 -0800 2009 Instead of making controller callbacks 2.3 only... [August Lilleaas]
directory config/ Tue Feb 03 23:44:29 -0800 2009 Work in progress validates_uniqueness_of hook. ... [August Lilleaas]
directory generators/ Thu Feb 26 10:40:47 -0800 2009 Instead of making controller callbacks 2.3 only... [August Lilleaas]
file init.rb
directory lib/
directory test/
README
Live Validations
================

Adds automagical live validations to your Rails application, by translating your regular model validations into live 
validation javascript.

Introductory screencast: http://vimeo.com/3385181

Installation instructions
=========================

The plugin is adapter based. There are currently adapters for the following libraries:

* http://bassistance.de/jquery-plugins/jquery-plugin-validation/ (LiveValidations::Adapters::JqueryValidations)
* http://livevalidation.com (LiveValidations::Adapters::LivevalidationDotCom)

In parentheses is the class name of the adapter. When you have decided which adapter you want to use, do this:

* Download the javascripts for the adapter you've chosen, and make sure to include them in your application layout.
* Run "ruby script/plugin install git://github.com/leethal/live-validations.git"
* Run "ruby script/generate live_validator" (skip this step if you're on 2.3)
* Add LiveValidations(the-class-name-of-the-adapter) in an initializer or at the bottom of environment.rb See the list 
above if you're unsure which class name you should use.
* Add :live_validations => true to the forms you want live validations on. Example: <% form_for(@post, :live_validations 
=> true) %>
* There is no step 6!