diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-22 04:27:28 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-22 04:27:28 -0700 |
commit | 99b5020eb2307dd4f2dc5dbc7ae9d38024176318 (patch) | |
tree | ae02b2c03b033f53437a7a27f9d915768f463542 | |
parent | 2cd2f51ded045d7cd69d96dd19ff98446776b8f9 (diff) | |
download | rails-99b5020eb2307dd4f2dc5dbc7ae9d38024176318.tar.gz rails-99b5020eb2307dd4f2dc5dbc7ae9d38024176318.tar.bz2 rails-99b5020eb2307dd4f2dc5dbc7ae9d38024176318.zip |
Edited actionpack/lib/action_view/helpers/form_helper.rb via GitHub
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 1 |
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) } |