bernat/best_in_place — Issue #97: Checkbox value is always "Yes"
Author: cmer
Created: 2012-01-31 07:55:15+00:00
State: open

Using this code in my view, the value shown is always "Yes", regardless if the property is actually False.

= best_in_place user, :receive_email_notifications, :type => :checkbox, path: group_user_path(group, user)

In my model (this uses Rails 3.2 key/value store)

def receive_email_notifications
preferences[:receive_email_notifications] || true
end

See screenshot: https://skitch.com/cmer/g7en2/17-varagesale-dev-on-facebook-build-20111220165912