Forum: Ruby on Rails date_select and :include_blank

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

date_select is a great helper, but I couldn't find a way to make it
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
bu since I'm in a process of getting comfy with ruby, I couldn't figure
how to :)

This topic is locked and can not be replied to.