class Primer::Forms::Dsl::FormReferenceInput
:nodoc:
def initialize(*fields_for_args, builder:, form:, nested: true, **fields_for_kwargs, &block)
include the name of the parent model, eg. `user[address][street]` instead of what we want,
together that aren't connected by an association. In such cases the fields will still
attributes approach works great. However sometimes all you want is to compose two forms
For situations like this where an association exists between two models, the nested
def initialize(*fields_for_args, builder:, form:, nested: true, **fields_for_kwargs, &block) @fields_for_args = fields_for_args @fields_for_kwargs = fields_for_kwargs @nested = nested @ref_block = block super(builder: builder, form: form, **fields_for_kwargs) end
def label
def label nil end
def name
def name nil end
def to_component
def to_component FormReference.new(input: self) end
def type
def type :form end