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.
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.
Thanks for the info. I neglected to mention that this is on Rails 1.2.6
(please no one “helpfully suggest” that I upgrade - thanks ;]), so these
options are not available. It’s fine - I won’t die.
One further question, if you use a “unified” helper like date_select in
the current v. of Rails (obviously), can you set different promopts for
each component input field of the date?
Wes
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.