Adds form_choice control to form.
Add this line to your application's Gemfile:
gem "form_choice", git: "[email protected]:pdf3rn/form-choice.git"
And then execute:
$ bundle install
Añadir al importmap.rb
:
pin 'choices', to: 'choices.js.js'
pin 'form_choice', to: 'form_choice.js'
En app/javascript/controllers/application.js
// ...
const application = Application.start()
application.register('form-choice', ChoicesField)
// ...
Stylesheets
@import "form_choice.css";
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.