bootstrap_builder 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -105,6 +105,13 @@ A group of checkboxes:
105
105
  = f.check_box :colours, :values => [['Red', 1], ['Green', 2], ['Blue', 3]]
106
106
  ```
107
107
 
108
+ Use the :help_block option to show the label on the right side:
109
+
110
+ ``` ruby
111
+ = f.check_box :approved, :help_block => 'Label on the Right'
112
+ ```
113
+
114
+
108
115
  ### Radio buttons
109
116
 
110
117
  A single radio button:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bootstrap_builder}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jack Neto", "The Working Group Inc."]
12
- s.date = %q{2012-07-04}
12
+ s.date = %q{2012-07-11}
13
13
  s.description = %q{}
14
14
  s.email = %q{jack@twg.ca}
15
15
  s.extra_rdoc_files = [
@@ -42,6 +42,7 @@ module BootstrapBuilder
42
42
  end
43
43
 
44
44
  def check_box(method, options = {}, checked_value = "1", unchecked_value = "0")
45
+ html_options = collect_html_options(options)
45
46
  if options[:values].present?
46
47
  values = options.delete(:values).collect do |key, val|
47
48
  name = "#{object_name}[#{method}][]"
@@ -61,7 +62,7 @@ module BootstrapBuilder
61
62
  :error_messages => error_messages_for(method)
62
63
  })
63
64
  else
64
- render_field('check_box', method, options) do
65
+ render_field('check_box', method, options, html_options) do
65
66
  super(method, options, checked_value, unchecked_value)
66
67
  end
67
68
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jack Neto
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-07-04 00:00:00 -04:00
18
+ date: 2012-07-11 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21