Flowdock
method

fields_for_nested_model

Importance_0
fields_for_nested_model(name, object, options, block) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_view/helpers/form_helper.rb, line 1278
        def fields_for_nested_model(name, object, options, block)
          object = object.to_model if object.respond_to?(:to_model)

          if object.persisted?
            @template.fields_for(name, object, options) do |builder|
              block.call(builder)
              @template.concat builder.hidden_field(:id) unless builder.emitted_hidden_id?
            end
          else
            @template.fields_for(name, object, options, &block)
          end
        end
Register or log in to add new notes.