Skip to content

Commit

Permalink
Renamed jquery.validate to jquery-validation because that's what it i…
Browse files Browse the repository at this point in the history
…s actually called

Updated README to reflect the name change
Removed useless javascript/vendor
  • Loading branch information
bcardarella committed Jul 26, 2010
1 parent 2deb57d commit 3c53334
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 2,112 deletions.
14 changes: 7 additions & 7 deletions README.markdown
@@ -1,5 +1,5 @@
# Client Side Validations
Now you can easily drop in client side validations in any Rails app. It will use validations defined in a given ActiveRecord (or ActiveModel) class for use with a Javascript form validator. (currently only [jquery.validate](http://bassistance.de/jquery-plugins/jquery-plugin-validation/) is supported)
Now you can easily drop in client side validations in any Rails app. It will use validations defined in a given ActiveRecord (or ActiveModel) class for use with [jquery-validation](http://bassistance.de/jquery-plugins/jquery-plugin-validation/)

For Rails 2 and Rails 3 example apps please see [client_side_validations_example](http://github.com/dnclabs/client_side_validations_examples)

Expand Down Expand Up @@ -36,7 +36,7 @@ Then run the generator:
This will copy client_side_validations.js to "public/javascripts"

**This version of ClientSideValidations will also copy a patched version of jquery.validate.js to "public/javascript"**
**This version of ClientSideValidations will also copy a patched version of jquery-validation.js to "public/javascript"**

### Rails 3
Add "gem 'client_side_validations'" to the Gemfile
Expand All @@ -46,11 +46,11 @@ Then run the generator:
This will copy client_side_validations.js to "public/javascripts"

**This version of ClientSideValidations will also copy a patched version of jquery.validate.js to "public/javascript"**
**This version of ClientSideValidations will also copy a patched version of jquery-validation.js to "public/javascript"**

## Configuration
#### *NOTE* This version of ClientSideValidations has a patched version of jquery.validate that will install automatically with the generator. *Do not* download the version listed below.
Currently only [jquery.validate](http://bassistance.de/jquery-plugins/jquery-plugin-validation/) is supported so you will need to download [jQuery](http://docs.jquery.com/Downloading_jQuery) and the jQuery Validate plugin to "public/javascripts"
#### *NOTE* This version of ClientSideValidations has a patched version of jquery-validation that will install automatically with the generator. *Do not* download the version listed below.
Download [jQuery](http://docs.jquery.com/Downloading_jQuery) and [jQuery Validation](http://bassistance.de/jquery-plugins/jquery-plugin-validation/) plugin to "public/javascripts"

### Rack
If you want to validate_uniqueness_of a call to the server must be made. You can do this with the ClidenSideValidations::Uniqueness middleware.
Expand Down Expand Up @@ -80,7 +80,7 @@ Validate your models as you normally would
You currently need both jQuery and the jQuery Validate plugin loaded before you load Client Side Validations

...
<%= javascript_include_tag 'jquery', 'jquery.validate', 'client_side_validations' %>
<%= javascript_include_tag 'jquery', 'jquery-validation', 'client_side_validations' %>
...

### View
Expand All @@ -101,7 +101,7 @@ That should be it!
## Advanced Options

### Initialization
[jquery.validate can be customized by setting various options](http://docs.jquery.com/Plugins/Validation/validate#toptions)
[jquery-validation can be customized by setting various options](http://docs.jquery.com/Plugins/Validation/validate#toptions)

Create config/initializers/client_side_validations.rb

Expand Down
4 changes: 2 additions & 2 deletions client_side_validations.gemspec
Expand Up @@ -5,7 +5,7 @@

Gem::Specification.new do |s|
s.name = %q{client_side_validations}
s.version = "2.6.2"
s.version = "2.7.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Brian Cardarella"]
Expand All @@ -21,7 +21,7 @@ Gem::Specification.new do |s|
"README.markdown",
"generators/client_side_validations/client_side_validations_generator.rb",
"javascript/lib/client_side_validations.js",
"javascript/lib/jquery.validate.js",
"javascript/lib/jquery-validation.js",
"lib/client_side_validations.rb",
"lib/client_side_validations/adapters/action_view.rb",
"lib/client_side_validations/adapters/active_model.rb",
Expand Down
Expand Up @@ -10,7 +10,7 @@ def manifest
record do |c|
c.directory('public/javascripts')
c.file('client_side_validations.js', 'public/javascripts/client_side_validations.js')
c.file('jquery.validate.js', 'public/javascripts/jquery.validate.js')
c.file('jquery-validation.js', 'public/javascripts/jquery-validation.js')
end
end

Expand Down
Expand Up @@ -6,7 +6,7 @@
*
* Copyright (c) 2006 - 2008 Jörn Zaefferer
*
* $Id: jquery.validate.js 6403 2009-06-17 14:27:16Z joern.zaefferer $
* $Id: jquery-validation.js 6403 2009-06-17 14:27:16Z joern.zaefferer $
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
Expand Down

0 comments on commit 3c53334

Please sign in to comment.