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: 73,931 of 197,861
Downloads: 14,136
Daily
Ranking: 73,908 of 197,834
Downloads: 0
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 |
|---|---|---|
| 29 | 1,033,456,311 | rspec |
| 44 | 806,677,862 | rails |
| 233 | 240,142,373 | yard |
| 858 | 65,021,119 | formtastic |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | sergeypedan |