jquery-validator 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +2 -2
- data/VERSION +1 -1
- data/jquery-validator.gemspec +2 -2
- data/lib/jquery-validator.rb +2 -0
- data/lib/jquery_validator/base.rb +0 -2
- data/lib/jquery_validator/form_builder.rb +0 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -28,7 +28,7 @@ Supported validations include:
|
|
28
28
|
end
|
29
29
|
|
30
30
|
<%= form_for(@user) do |f| %>
|
31
|
-
<%=f.
|
31
|
+
<%=f.jquery_validators %>
|
32
32
|
Login: <%= f.text_field :login %><br/>
|
33
33
|
Password: <%= f.password_field :password %><br/>
|
34
34
|
Confirm: <%= f.password_field :password_confirmation %><br/>
|
@@ -43,7 +43,7 @@ You can pass a :fields argument to jquery_validations to only validate certain f
|
|
43
43
|
<%= f.jquery_validators :fields => [:login, :email], :debug => true, :submitHandler => "function() { alert('Thank you!'); }" %>
|
44
44
|
|
45
45
|
If you want to be more unobtrusive, add
|
46
|
-
|
46
|
+
|
47
47
|
yield :javascripts
|
48
48
|
|
49
49
|
to the head section of your application.html.erb and surround your jquery_validators call with content_for like so:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/jquery-validator.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{jquery-validator}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["mixtli"]
|
12
|
-
s.date = %q{2010-06-
|
12
|
+
s.date = %q{2010-06-12}
|
13
13
|
s.description = %q{Uses the model validation logic you have already defined to generate javascript validation using jquery}
|
14
14
|
s.email = %q{ronmcclain75@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/jquery-validator.rb
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 2
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- mixtli
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-12 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|