Class: AnchormodelCheckBoxesInput

Inherits:
SimpleForm::Inputs::CollectionCheckBoxesInput
  • Object
show all
Includes:
Anchormodel::SimpleFormInputs::Helpers::AnchormodelInputsCommon
Defined in:
lib/anchormodel/simple_form_inputs/anchormodel_check_boxes_input.rb

Overview

SimpleForm input for a collection-valued anchormodel attribute (belongs_to_anchormodels), rendered as check boxes (one per anchormodel key).

Examples:

<%= simple_form_for user do |f| %>
  <%= f.input :animals, as: :anchormodel_check_boxes %>
<% end %>

Method Summary

Methods included from Anchormodel::SimpleFormInputs::Helpers::AnchormodelInputsCommon

#input