RubyGems Navigation menu

formtastic_tristate_radio 0.2.6

Have 3-state radiobuttons instead of a 2-state checkbox for your Boolean columns which can store NULL. This gem: 1. Provides a custom Formtastic input type `:tristate_radio` which renders 3 radios (“Yes”, “No”, “Unset”) instead of a checkbox (only where you put it). 2. Teaches Rails recognize `"null"` and `"nil"` param values as `nil` 3. Encourages you to add translations for ActiveAdmin “status tag” so that `nil` be correctly translated as “Unset” instead of “False”. Does not change controls, you need to turn it on via `as: :tristate_radio` option.

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 0.2.7 - June 10, 2022 (13,5 ko)
  2. 0.2.6 - June 09, 2022 (13 ko)
  3. 0.2.5 - November 09, 2021 (24,5 ko)
  4. 0.2.4 - November 09, 2021 (13 ko)
  5. 0.2.3 - November 09, 2021 (13,5 ko)
Voir toutes les versions (9)

Dépendances de Runtime (2):

formtastic >= 3, < 5
rails >= 4, < 8

Dépendances de Development (2):

rspec ~> 3
yard >= 0.9.20, < 1

Propriétaires:

Pushed by:

Auteurs:

  • Sergey Pedan

Total de contrôle SHA 256:

9238c51e06fd9b4df604f16097fa4ae7f68372508088f4c7cdd2d7934cd7f3c0

Total de téléchargements 9 790

Pour cette version 635

License:

MIT

Version de Ruby requise: >= 2.4.0

Liens: