RubyGems Navigation menu

formtastic_tristate_radio 0.2.7

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.

Versionen:

  1. 0.2.7 - June 10, 2022 (13,5 KB)
  2. 0.2.6 - June 09, 2022 (13 KB)
  3. 0.2.5 - November 09, 2021 (24,5 KB)
  4. 0.2.4 - November 09, 2021 (13 KB)
  5. 0.2.3 - November 09, 2021 (13,5 KB)
Zeige alle Versionen (9 total)

Runtime Abhängigkeiten (2):

  • formtastic >= 3, < 5
  • rails >= 4, < 8
  • Development Abhängigkeiten (2):

  • rspec ~> 3
  • yard >= 0.9.20, < 1
  • Besitzer:

    Pushed by:

    Autoren:

    • Sergey Pedan

    SHA 256-Prüfsumme:

    b6eb5b1e92cdd81c70c0939e78df693bd1aa7760d15d272b7b7ad3f68d9533cd

    Downloads insgesamt 6.874

    Für diese Version 429

    Gemfile:
    = In die Zwischenablage kopieren Kopiert!

    installieren:
    =

    Lizenz:

    MIT

    Erforderliche Ruby-Version: >= 2.4.0

    Links: