Howto display multiple symbol values in collection_select()

i have the following code:

controller:

@vehicles = Vehicle.find(:all, :order => “license”)

view:

<%= collection_select(:mileage, :vehicle_id, @vehicles, :id, :license)
%>

what i want:

instead of just license, i want:

:make + " " + :model + ", " + :license in place of just :license.

obviously, this doesn’t work. nor does putting an instance variable in
place of :license.

any help would be appreciated.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs