Class: CafeCar::Inputs::SelectInput

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

Overview

A <select> of an ActiveRecord enum's declared values. Delegates to the form builder's enum, which reads the choices off defined_enums and prepends the locale prompt as the blank option.

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/select_input.rb', line 7

def helper = :enum