Option on select form helper to customize "Select" text?

All,

Is there any built-in way in the "select" form helper to display something other than "Select" in the :include_blank option? Specifically, for a date helper, would like to show "Month", "Day", "Year" respectively for those options in 3 selects.

Thanks, Wes

Try this:

script/generate scaffold Thing name:string when:datetime text:body

You'll see:

In migration:

    create_table :things do |t|       t.string :name       t.datetime :when       t.text :body     end

In view:

<h1>New thing</h1>

<% form_for(@thing) do |f| %>   <%= f.error_messages %> . .   <p>     <%= f.label :when %><br />     <%= f.datetime_select :when %>   </p>

start your server and check out: localhost:3000/things/new

All,

Is there any built-in way in the "select" form helper to display something other than "Select" in the :include_blank option? Specifically, for a date helper, would like to show "Month", "Day", "Year" respectively for those options in 3 selects.

If the :include_blank option is a string then that is used for the blank option. There's also the :prompt option. I do recall that support of this with the date_select stuff was only added recently.

Fred