0
如何在此處將「true」設置爲默認值?rails,simple_form,如何在單選按鈕中設置默認選定項目
選擇:真選項不能正常工作
<%= f.input :smoke, label: "Smoke", :collection => [[true, "You can"], [false, "You can't"]],
label_method: :last, value_method: :first, as: :radio_buttons, selected: true %>