Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
No longer maintained.
Ruby
tag: v0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app/controllers
config
generators/live_validator
lib
test
.gitignore
.gitmodules
MIT-LICENCE
README
Rakefile
init.rb

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.
Something went wrong with that request. Please try again.