From 99b5020eb2307dd4f2dc5dbc7ae9d38024176318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sun, 22 May 2011 04:27:28 -0700 Subject: Edited actionpack/lib/action_view/helpers/form_helper.rb via GitHub --- actionpack/lib/action_view/helpers/form_helper.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 319aa36698..cb1c13912a 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -1229,6 +1229,7 @@ module ActionView RUBY_EVAL end + # Check +fields_for+ for docs and examples. def fields_for_with_index(record_name, record_object = nil, fields_options = {}, &block) index = fields_options[:index] || options[:child_index] || nested_child_index(@object_name) block_with_index = Proc.new{ |obj| block.call(obj, index) } -- cgit v1.2.3