neorails-form_fu 0.51 → 0.52

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.
Files changed (3) hide show
  1. data/form_fu.gemspec +2 -2
  2. data/lib/form_fu/helpers.rb +15 -0
  3. metadata +2 -2
data/form_fu.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'form_fu'
3
- s.version = '0.51'
4
- s.date = '2008-07-09'
3
+ s.version = '0.52'
4
+ s.date = '2008-09-10s'
5
5
 
6
6
  s.summary = "Build Nice DRY Rails Forms"
7
7
  s.description = "FormFu is a Rails plugin that enables you to easily build nice, tableless forms"
@@ -12,6 +12,21 @@ module FormFu
12
12
 
13
13
  # also work with the more semantic name (build_form_for)
14
14
  alias :build_form_for :formfu_for
15
+
16
+
17
+ # Create a form_for block using FormFuBuilder
18
+ def remote_formfu_for(record_or_name_or_array, *args, &block)
19
+ raise ArgumentError, "Missing block" unless block_given?
20
+
21
+ options = args.extract_options!
22
+ args << options.merge(:builder => FormFu::FormBuilder)
23
+ remote_form_for(record_or_name_or_array, *args, &block)
24
+
25
+ end
26
+
27
+ # also work with the more semantic name (build_form_for)
28
+ alias :build_remote_form_for :remote_formfu_for
29
+
15
30
 
16
31
  # Create a fields_for block using FormFuBuilder
17
32
  def formfu_fields_for(object_or_object_name, *args, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neorails-form_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.51"
4
+ version: "0.52"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Crocker
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-09 00:00:00 -07:00
12
+ date: 2008-09-10 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency