関連値を非表示フィールドとして単純な形式で渡そうとしています
あなたがするときのように同じ機能...
= simple form for @document do |f|
= f.association :clients
...しかし、insted 隠しフィールドを生成します
私はそれをこのようにしようとしています
= f.association :clients, as: hidden
しかし、それは明らかに機能しません
私のために働く唯一のものは
%input{ name: 'document[client_ids][]', value: '1'}
%input{ name: 'document[client_ids][]', value: '2'}
%input{ name: 'document[client_ids][]', value: '3'}