我在RoR的Simple Form中有这个元素:
<%= f.input "questions#{q.id}", label: q.label, collection: q.answers, as: :radio_buttons, value_method: :id, wrapper_html: { class: "question" } %>
我必须使用自定义类
包装我的收藏按钮答案 0 :(得分:0)
尝试:
<%= f.input "questions#{q.id}", label: q.label, collection: q.answers, as: :radio_buttons, value_method: :id, collection_wrapper_class: "question" %>