Я уже пытался добавить required => true и: prompt => "select ..." в поле collection_select, но каждый раз, когда я получаю синтаксическую ошибку.Как решить эту ошибку, которая ниже.
.field
= f.label "Receiver"
= f.collection_select(:receiver_admin_id,
Admin.agent_and_admin(current_admin.id, current_admin.parent_master_agent_id),
:id,
:agent_name,
:prompt => 'Select receiver',
{multiple: true}),
:required => true
= f.collection_select(:receiver_admin_id,
Admin.agent_and_admin(current_admin.id, current_admin.parent_master_agent_id),
:id,
:agent_name,
:prompt => 'Select receiver',
{multiple: true, required: true})
= f.collection_select(:receiver_admin_id,
Admin.agent_and_admin(current_admin.id, current_admin.parent_master_agent_id),
:id,
:agent_name,
:prompt => 'Select receiver',
{},
{multiple: true}),
:required => true
= f.collection_select :receiver_admin_id,
Admin.agent_and_admin(current_admin.id, current_admin.parent_master_agent_id),
:id,
:agent_name,
:prompt => 'Select receiver',
{multiple: true},
:required => true