i have this collection_select: <%= f.label :customer, t('admin.customers.index.items') %><br /> <%= f.collection_select( :customer, @customers, :id, :surname, options = {:prompt => t('admin.customers.index.item') } ) %>
and i want to obtain this in my html: ...... <option> surname name company </option> ....... i tryed: <%= f.label :customer, t('admin.customers.index.items') %><br /> <%= 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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---