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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
How about an html label element? <label>Date: </label> The date_select methods only gives you the html <select> element. Kyle On May 21, 10:11 pm, athem <allan.m.mil...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On May 21, 7:18 pm, Kyle Banker <kyleban...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> How about an html label element? > > <label>Date: </label> > > The date_select methods only gives you the html <select> element. > > Kyle > > On May 21, 10:11 pm, athem <allan.m.mil...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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. >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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---