提交 99b5020e 编写于 作者: J José Valim

Edited actionpack/lib/action_view/helpers/form_helper.rb via GitHub

上级 2cd2f51d
......@@ -1229,6 +1229,7 @@ def #{selector}(method, options = {}) # def text_field(method, options = {})
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) }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册