add symbol in collection_select helper

<%= f.select :report_ids, @reports.map { |r| ["#{r.name} #{r.surname}", r.id] } , {}, :multiple => true, :size => 10 %>

hi I am new to rails, here why dont we use a method which is not a table attribute but a user defined one which is defined as we need like display of both surname and name concatenated. i tried but i am getting error pls clarify me thanks in advance

MaurĂ­cio Linhares wrote: