generic_form_builder 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/generic_form_builder.gemspec +1 -1
- data/lib/generic_form_builder.rb +2 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = "generic_form_builder"
|
4
|
-
s.version = '0.
|
4
|
+
s.version = '0.2.0'
|
5
5
|
s.platform = Gem::Platform::RUBY
|
6
6
|
s.authors = ["Elliot Crosby-McCullough", "George Brocklehurst", "Elise Huard", "Tom Stuart"]
|
7
7
|
s.email = ["elliot.cm@gmail.com"]
|
data/lib/generic_form_builder.rb
CHANGED
@@ -35,7 +35,8 @@ class GenericFormBuilder < ActionView::Helpers::FormBuilder
|
|
35
35
|
|
36
36
|
def radio_button(field, value, options = {})
|
37
37
|
label_text = options.delete(:label) || field.to_s.humanize
|
38
|
-
|
38
|
+
options[:tag_type] ||= :li
|
39
|
+
content_tag(options[:tag_type], label(field, super + " #{label_text} #{errors_text(field)}"))
|
39
40
|
end
|
40
41
|
|
41
42
|
def buttons(options = {})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: generic_form_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2012-
|
15
|
+
date: 2012-02-08 00:00:00.000000000Z
|
16
16
|
dependencies: []
|
17
17
|
description:
|
18
18
|
email:
|