Select helper question


#1

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


#2

On 2/7/07, Petr removed_email_address@domain.invalid 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.