Open vanboom opened 8 years ago
<%= best_in_place @user, :receive_emails, as: :checkbox, collection: ["No, thanks", "Yes, of course!"], true_class: "checked", false_class: "unchecked" %>
It would be cool if we could specify different classes for the check box handler to change colors or depiction based on the value.
I will try to implement this as best I can, but welcome everyone's suggestions.
<%= best_in_place @user, :receive_emails, as: :checkbox, collection: ["No, thanks", "Yes, of course!"], true_class: "checked", false_class: "unchecked" %>
It would be cool if we could specify different classes for the check box handler to change colors or depiction based on the value.
I will try to implement this as best I can, but welcome everyone's suggestions.