Forum: Ruby on Rails :prompt not working?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ed C. (Guest)
on 2005-12-31 04:50
(Received via mailing list)
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, ] }, {:prompt => true} %>

This topic is locked and can not be replied to.