Permalink
Browse files

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.
  • Loading branch information...
1 parent 6ce9a15 commit b4c491dc71a2872b9b28e9013e68b2e88278d05e @jurglic jurglic committed Dec 16, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.md
View
@@ -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 %>
```

0 comments on commit b4c491d

Please sign in to comment.