aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-22 04:27:28 -0700
committerJosé Valim <jose.valim@gmail.com>2011-05-22 04:27:28 -0700
commit99b5020eb2307dd4f2dc5dbc7ae9d38024176318 (patch)
treeae02b2c03b033f53437a7a27f9d915768f463542 /actionpack
parent2cd2f51ded045d7cd69d96dd19ff98446776b8f9 (diff)
downloadrails-99b5020eb2307dd4f2dc5dbc7ae9d38024176318.tar.gz
rails-99b5020eb2307dd4f2dc5dbc7ae9d38024176318.tar.bz2
rails-99b5020eb2307dd4f2dc5dbc7ae9d38024176318.zip
Edited actionpack/lib/action_view/helpers/form_helper.rb via GitHub
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb1
1 files changed, 1 insertions, 0 deletions
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) }