Class: AnchormodelRadioButtonsInput

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

Overview

SimpleForm input for a single-value anchormodel attribute, rendered as radio buttons. Unsuitable for collection attributes — use AnchormodelCheckBoxesInput for those.

Examples:

<%= simple_form_for user do |f| %>
  <%= f.input :role, as: :anchormodel_radio_buttons %>
<% end %>

Method Summary

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

#input