Is there a way to add a prompt(s) for the dropdowns generated by
date_select? Shooting in the dark, I tried using :prompt => true with
no result.
Thanks.
Is there a way to add a prompt(s) for the dropdowns generated by
date_select? Shooting in the dark, I tried using :prompt => true with
no result.
Thanks.
How about an html label element?
<label>Date: </label>
The date_select methods only gives you the html <select> element.
Kyle
Actually, I don't think I clearly expressed my question. I meant
having the dropdown itself (not a label) display a prompt similar to:
<%= f.collection_select :id,
@vehicle_types, :id, :vehichle_type, :prompt => "Select Vehicle" %>
or simply
:prompt => true
to display "Select." The date_select() method is very useful, but I
can't see a way to use :prompt as in other select methods. Thanks.