better_form 0.4.3 → 0.4.4

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.
@@ -1,3 +1,3 @@
1
1
  module BetterForm
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
@@ -6,6 +6,12 @@ module BetterForm
6
6
  form_for(record_or_name_or_array, *(args << options), &proc)
7
7
  end
8
8
 
9
+ def better_fields_for(record_or_name_or_array, *args, &proc)
10
+ options = args.extract_options!.reverse_merge(:builder => BetterForm::Builder)
11
+ @label_all = options[:label]
12
+ fields_for(record_or_name_or_array, *(args << options), &proc)
13
+ end
14
+
9
15
  def label_all?
10
16
  @label_all
11
17
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: better_form
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.3
5
+ version: 0.4.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nicholas Firth-McCoy
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-28 00:00:00 +11:00
13
+ date: 2011-04-25 00:00:00 +10:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  requirements: []
55
55
 
56
56
  rubyforge_project:
57
- rubygems_version: 1.6.2
57
+ rubygems_version: 1.6.1
58
58
  signing_key:
59
59
  specification_version: 3
60
60
  summary: A Better Rails 3 FormBuilder