Class: CafeCar::Inputs::AssociationInput

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

Overview

A <select> over an association's records (belongs_to / has_many). Delegates to the form builder's association, which caps the collection, guarantees the currently-associated record is present, and flags the select for typeahead enhancement when the associated model exposes an options feed.

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



8
# File 'lib/cafe_car/inputs/association_input.rb', line 8

def helper = :association