i have this collection_select:
<%= f.label :customer, t(‘admin.customers.index.items’) %>
<%= f.collection_select( :customer, @customers, :id, :surname, options
= {:prompt => t(‘admin.customers.index.item’) } ) %>
and i want to obtain this in my html:
… surname name company …
i tryed:
<%= f.label :customer, t(‘admin.customers.index.items’) %>
<%= f.collection_select( :customer, @customers, :id, :surname + :name
- :company , options = {:prompt => t(‘admin.customers.index.item’) } )
%>
but it isn’t possible. ho can i do?