Flowdock
method

instantiate_builder

Importance_0
v3.2.8 - Show latest stable - 0 notes - Class: ActionView::Helpers::FormHelper
instantiate_builder(record_name, record_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 953
        def instantiate_builder(record_name, record_object, options, &block)
          case record_name
          when String, Symbol
            object = record_object
            object_name = record_name
          else
            object = record_name
            object_name = ActiveModel::Naming.param_key(object)
          end

          builder = options[:builder] || default_form_builder
          builder.new(object_name, object, self, options, block)
        end
Register or log in to add new notes.