Class: CafeCar::Inputs::NestedInput

Inherits:
BaseInput
  • Object
show all
Defined in:
lib/cafe_car/inputs/nested_input.rb

Overview

The fields_for sub-form for a accepts_nested_attributes_for association. Delegates to the form builder's fields_for, which renders each child record's remaining fields (or the caller's block).

Instance Attribute Summary

Attributes inherited from BaseInput

#args, #form, #method, #options, #template

Instance Method Summary collapse

Methods inherited from BaseInput

build, classes, #defaults, #html_safe?, #info, #initialize, #render_options, #text_hints, #to_html, #to_s

Constructor Details

This class inherits a constructor from CafeCar::Inputs::BaseInput

Instance Method Details

#helperObject



7
# File 'lib/cafe_car/inputs/nested_input.rb', line 7

def helper = :fields_for