Field::Boolean

Renders a checkbox for editing, and a yes/no indicator on display pages.

Boolean field showing a checked "Active" checkbox on an edit page Boolean field showing a checked indicator for "Active" on a show page

Field::Boolean.new(:published)

Not searchable by default. If enabled, matches by equality against recognized true/false terms (true/false, 1/0, on/off, …); other terms match nothing.