Forum: Ruby on Rails date_select and :include_blank

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.
Firat can B. (Guest)
on 2005-12-27 22:03
(Received via mailing list)
Hi,

date_select is a great helper, but I couldn't find a way to make it
display
a text like "Please Select" instead of blank field.

When I use date_select with a param of :include_blank => true, it
renders an
option with a value of "" and string of "". I want to display "Please
Select". Anyway to do this? Maybe overwriting ActionView modules would
do,
bu since I'm in a process of getting comfy with ruby, I couldn't figure
out
how to :)

Thanks.
This topic is locked and can not be replied to.