Class: CafeCar::Inputs::BooleanInput

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

Overview

A native <input type="checkbox"> (with Rails' companion hidden field) for boolean columns, themed as a CafeCar control by ui/Input.css.

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



6
# File 'lib/cafe_car/inputs/boolean_input.rb', line 6

def helper = :check_box