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

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.
3203ed0e608d3bfae1e31282e629ffa2?d=identicon&s=25 peter.fitzgibbons (Guest)
on 2005-12-08 22: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 ?

Thanks.

--
Eb234d1ee9f1dcd334657d7c5c1b1c4d?d=identicon&s=25 Jamie Macey (jamie)
on 2005-12-08 22: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.