Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 99b5020eb2307dd4f2dc5dbc7ae9d38024176318 1 parent 2cd2f51
@josevalim josevalim authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  actionpack/lib/action_view/helpers/form_helper.rb
View
1  actionpack/lib/action_view/helpers/form_helper.rb
@@ -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) }
Please sign in to comment.
Something went wrong with that request. Please try again.