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

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.
F3b7b8756d0c7f71cc7460cc33aefaee?d=identicon&s=25 Daniel Berger (Guest)
on 2006-01-10 18: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
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. :)


A2c85dc5ee81b12e3cc0a6522e8d079d?d=identicon&s=25 Chris Hall (Guest)
on 2006-01-10 18:48
(Received via mailing list)
This topic is locked and can not be replied to.