Categories: None [Edit]
formtastic_tristate_radio
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.
Total
Ranking: 80,084 of 180,590
Downloads: 9,876
Daily
Ranking: 32,459 of 180,571
Downloads: 12
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|
Depends on
Rank | Downloads | Name |
---|---|---|
24 | 770,574,904 | rspec |
42 | 517,045,440 | rails |
222 | 142,899,957 | yard |
822 | 42,674,824 | formtastic |
Owners
# | Gravatar | Handle |
---|---|---|
1 | sergeypedan |