I need to create custom checkbox
now my checkbox is <%= check_box_tag "user[show_notification]" %>
i need to add checked/unchecked
show_notification its boolean field
<%= check_box_tag "user[show_notification]",checked:User.current.show_notification ? true : false %>
Aucun commentaire:
Enregistrer un commentaire