Select helper question

Ive got this:

@oss = Product.find(:all, :conditions => “part_type = ‘Operating
System’”).map {|u| [u.title, u.id]}

select(:system, :os, @oss)

I would like to add an empty space/or custom text in front of the list
of operating systems. such as:

Select from the list Windows XP Professional ........

How do i do this?

Thanks,
Petr

On 2/7/07, Petr [email protected] wrote:

Select from the list Windows XP Professional ........

How do i do this?

Thanks,
Petr

Hi Petr,

How about:

select(:system, :os, @oss, :prompt => ‘Select from the list’)

?

George.