simple_fields_for 내가 역할을 받아 다음 작성한에서 선택할 수 있습니다, 어떻게 그냥 역할 필드에 multiple: true
를 추가 여러 값가 어떻게 멀티
= f.simple_fields_for :content_roles do |role|
= role.input :role_id, label: "visible to", as: :select, label: "Role", collection: Role.all, required: true
나는 이미 시도했지만 작동하지 않습니다. – level0
결과는 무엇입니까? "오류"란 무엇입니까? –