Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bondarolik/24f9ed1b142825feea23852626320484 to your computer and use it in GitHub Desktop.
Save bondarolik/24f9ed1b142825feea23852626320484 to your computer and use it in GitHub Desktop.
SimpleForms select with boolean and custom label
= f.input :got_franch, label: false, as: :select, required: true, input_html: {class: "js-select2 selector default-input-contact b-gray f-13", data: {placeholder: ("")}}
= f.input :got_franch, as: :select,
collection: [ ['Si', true], ['No', false] ],
label: false,
required: false
input_html: {
class: "js-select2 selector default-input-contact b-gray f-13"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment