Permalink
Browse files

simple nested fields

  • Loading branch information...
1 parent 6aa58ca commit 7ce2e27d5c8ff65fd25f3d4c839e5c275f2a1eb0 @eeng committed Apr 24, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/nested_form/view_helper.rb
@@ -16,6 +16,13 @@ def simple_nested_form_for(*args, &block)
capture(f, &block).to_s << after_nested_form_callbacks
end
end
+
+ def simple_nested_fields_for(*args, &block)
+ options = args.extract_options!.reverse_merge(:builder => NestedForm::SimpleBuilder)
+ simple_fields_for(*(args << options)) do |f|
+ capture(f, &block).to_s << after_nested_form_callbacks
+ end
+ end
end
if defined?(NestedForm::FormtasticBuilder)

0 comments on commit 7ce2e27

Please sign in to comment.