Forum: Ruby on Rails :prompt not working?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
648805ae18e92b7c71e46f3caa23ddc8?d=identicon&s=25 Ed C. (Guest)
on 2005-12-31 03: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, p.id ] }, {:prompt => true} %>

Thanks,
EJC
This topic is locked and can not be replied to.