augustl / live-validations

No longer maintained.

This URL has Read+Write access

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. Currently, there's only one workind adapter. It uses jQuery. Here's the procedure:

* Download jQuery from http://jquery.com. Save it as public/javascripts/jquery.js
* Download the jQuery validations plugin, http://bassistance.de/jquery-plugins/jquery-plugin-validation/. Save it as 
public/javascirpts/jquery.validate.js
* Add this to app/views/layouts/application.html.erb: <%= javascript_include_tag "jquery", "jquery.validate.js" %>
* 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.use(LiveValidations::Adapters::JqueryValidations)" in an initializer or at the bottom of 
environment.rb.
* Add :live_validations => true to the forms you want live validations on. Example: <% form_for(@post, :live_validations 
=> true) %>
* There is no step 7!

Moar adapters!
==============

It would rock to get some more adapters. Validatious, livevalidation.com etc. Bask in fame and glory and contribute to 
this project by hacking an adapter.