How to insert the "data-empreendimento-id" property in each option?

12 Views Asked by At
<%= 
    f.grouped_collection_select(:produto_id,
      Town.ativos_com_empreendimentos, 
      lambda { |town| town.empreendimentos.releaseds }, 
      :nome, :produto_id, :nome, 
      { include_blank: "Selecione um empreendimento!" }) 
  %>

How to put a data-attribute in each option, maintaining this structure?

0

There are 0 best solutions below