generic_form_builder 0.1.2 → 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.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Generic form builder
2
2
  ====================
3
3
 
4
- You like. Use it and stuff.
4
+ You like, use it. And stuff.
5
5
 
6
6
  Instead of the normal one.
7
7
 
@@ -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.1.2'
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"]
@@ -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
- content_tag(:p, label(field, super + " #{label_text} #{errors_text(field)}"))
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.1.2
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-01-27 00:00:00.000000000Z
15
+ date: 2012-02-08 00:00:00.000000000Z
16
16
  dependencies: []
17
17
  description:
18
18
  email: