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.

Posting an answer for others struggling with this.

One option that works for me is to create a custom field in the appropriate model that contains the required fields, then call this field in the collection_select.

In Model: def full_vehicle_desc self.make + " " + self.model + " " + self.license end

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