check_tag 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -2
- data/lib/check_tag/version.rb +1 -1
- data/lib/check_tag.rb +4 -3
- metadata +3 -5
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# CheckTag
|
2
2
|
|
3
|
-
|
3
|
+
This gem allows you use a check_box_tag that will submit a value whether or not it is checked. You can also specify which values you want the tag to submit when
|
4
|
+
checked and not checked.
|
4
5
|
|
5
6
|
## Installation
|
6
7
|
|
@@ -18,7 +19,7 @@ Or install it yourself as:
|
|
18
19
|
|
19
20
|
## Usage
|
20
21
|
|
21
|
-
|
22
|
+
<%= check_tag("id", "checked_value=true", "unchecked_value=false", "default=false") %>
|
22
23
|
|
23
24
|
## Contributing
|
24
25
|
|
data/lib/check_tag/version.rb
CHANGED
data/lib/check_tag.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
require "check_tag/version"
|
2
|
-
|
2
|
+
|
3
|
+
ActiveSupport.on_load(:action_view) do
|
4
|
+
include CheckTag
|
5
|
+
end
|
3
6
|
|
4
7
|
module CheckTag
|
5
8
|
|
@@ -38,6 +41,4 @@ module CheckTag
|
|
38
41
|
@defaulted = @defaulted.to_s
|
39
42
|
end
|
40
43
|
|
41
|
-
|
42
|
-
|
43
44
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: check_tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
13
|
-
default_executable:
|
12
|
+
date: 2012-10-08 00:00:00.000000000 Z
|
14
13
|
dependencies: []
|
15
14
|
description: Check box tag that submits value whether checked or unchecked
|
16
15
|
email:
|
@@ -27,7 +26,6 @@ files:
|
|
27
26
|
- check_tag.gemspec
|
28
27
|
- lib/check_tag.rb
|
29
28
|
- lib/check_tag/version.rb
|
30
|
-
has_rdoc: true
|
31
29
|
homepage: ''
|
32
30
|
licenses: []
|
33
31
|
post_install_message:
|
@@ -48,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
46
|
version: '0'
|
49
47
|
requirements: []
|
50
48
|
rubyforge_project:
|
51
|
-
rubygems_version: 1.
|
49
|
+
rubygems_version: 1.8.24
|
52
50
|
signing_key:
|
53
51
|
specification_version: 3
|
54
52
|
summary: Form helper check box tag that will submit a value whether the box is checked
|