:prompt not working?


#1

Hi all,

I’m trying to use the { :prompt => true } option in an erb form.
However, not extra option-tag is prepended to the select list. Am I
doing something wrong? (Code snipper follows.)

<%= select :user, ‘person_id’, Person.find(:all, :order => ‘last_name,
first_name’).collect {|p| [ p.fullname, p.id ] }, {:prompt => true} %>

Thanks,
EJC