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 %>