Forum: Ruby on Rails select lists - initial and empty elements

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.
Daniel B. (Guest)
on 2006-01-10 19:14
(Received via mailing list)
Hi all,

A couple quick select helper questions.

First, how do I set the initial selection value?

Second, how do I create an "empty" element in the list?  Or should I
just
unshift nil onto the list?

I looked over the docs, but didn't find anything specifically about
this.  If
this is covered, just point me to the appropriate link and I'll be on my
way. :)

Thanks,

Dan
Chris H. (Guest)
on 2006-01-10 19:48
(Received via mailing list)
This topic is locked and can not be replied to.