From b4c491dc71a2872b9b28e9013e68b2e88278d05e Mon Sep 17 00:00:00 2001 From: Uros Jurglic Date: Mon, 16 Dec 2013 20:41:37 +0100 Subject: [PATCH] Add check_box/boolean attribute example to README The ability to set checked and unchecked values on check_boxes (#643) is really hard to find (mapping boolean<->check_box only makes it worse). It seems well worth mentioning it inside the README. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 92631d50..ccb44016 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,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.button :submit %> <% end %> ```