Forum: Ruby on Rails select_tag and :include_blank => true not working

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 J. (Guest)
on 2006-04-19 23:09

I'm using select_tag to display a non-model dropdown, which works fine.
However, I've tried every which way to use the :include_blank => true
option, but it simply won't display a blank value.  Using :include_blank
=> true with select on model fields works fine.

Can someone please show me a working example?
Emin H. (Guest)
on 2006-04-20 00:48
(Received via mailing list)
well, there is no such an attribute for select_tag

you can simply add blank row to the list of values that you produce
Peter J. (Guest)
on 2006-04-20 16:33

Thanks for the info.  I did a little more research and came to the same
This topic is locked and can not be replied to.