Use strings in checked/unchecked examples, to avoid confusion with omission of hidden field

This commit is contained in:
Paul Callaghan 2022-07-12 12:13:46 +01:00
parent 39787221d9
commit c3060bd8f8
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ the wrapper as well:
<%= f.input :date_of_birth, as: :date, start_year: Date.today.year - 90,
end_year: Date.today.year - 12, discard_day: true,
order: [:month, :year] %>
<%= f.input :accepts, as: :boolean, checked_value: true, unchecked_value: false %>
<%= f.input :accepts, as: :boolean, checked_value: 'positive', unchecked_value: 'negative' %>
<%= f.button :submit %>
<% end %>
```