augustl / live-validations
- Source
- Commits
- Network (11)
- Issues (5)
- Downloads (4)
- Wiki (3)
- Graphs
-
Tag:
v0.1
August Lilleaas (author)
Thu Feb 26 12:54:01 -0800 2009
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Jan 28 12:37:25 -0800 2009 | |
| |
.gitmodules | ||
| |
MIT-LICENCE | Wed Jan 28 12:37:25 -0800 2009 | |
| |
README | ||
| |
Rakefile | Thu Feb 05 01:43:49 -0800 2009 | |
| |
app/ | Thu Feb 26 10:40:47 -0800 2009 | |
| |
config/ | Tue Feb 03 23:44:29 -0800 2009 | |
| |
generators/ | Thu Feb 26 10:40:47 -0800 2009 | |
| |
init.rb | ||
| |
lib/ | ||
| |
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.

