Forum: Ruby on Rails how to use <select> with blank selected ?

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.
peter.fitzgibbons (Guest)
on 2005-12-08 23:51
(Received via mailing list)
Hello all,

I'm using this ;
<%=  select("subdivision", "id", @subdivisions, { :include_blank => true

But the selected value is actually the 2nd row of the options???
How do I get the first 'blank' row to be selected ?


Jamie M. (Guest)
on 2005-12-08 23:51
(Received via mailing list)
Should work.

Are you using firefox?  If so you need to hit CTRL+F5 to do a hard
refresh that will reset all the form elements (they don't automatically
get reset with a plain F5)

- Jamie
This topic is locked and can not be replied to.