Just looked at the Date helper in the rails API and noticed that none of the functions there (i.e. date_select) allow me to specify html options (i.e. class) for the generated selects. I was wondering how do other group members css format date select dropdowns? Best, Gabor --~--~---------~--~----~------------~-------~--~----~ 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 6/13/07, gabordemeter <gabordemeter-YbzV19J7KiEAvxtiuMwx3w@public.gmane.org> wrote:> > Just looked at the Date helper in the rails API and noticed that none > of the functions there (i.e. date_select) allow me to specify html > options (i.e. class) for the generated selects. > > I was wondering how do other group members css format date select > dropdowns?Use a wrapper element and then style using CSS selectors: content_tag(:div, date_select(:widget, :date), :class => ''date_select'') CSS: .date_select select { ... } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks Bob. I thought of that myself but wanted to double check that there''s no other more direct way to do it. On Jun 13, 11:35 am, "Bob Showalter" <showa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 6/13/07, gabordemeter <gabordeme...-YbzV19J7KiEAvxtiuMwx3w@public.gmane.org> wrote: > > > > > Just looked at the Date helper in the rails API and noticed that none > > of the functions there (i.e. date_select) allow me to specify html > > options (i.e. class) for the generated selects. > > > I was wondering how do other group members css format date select > > dropdowns? > > Use a wrapper element and then style using CSS selectors: > > content_tag(:div, date_select(:widget, :date), :class => ''date_select'') > > CSS: > > .date_select select { ... }--~--~---------~--~----~------------~-------~--~----~ 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 6/13/07, gabordemeter <gabordemeter-YbzV19J7KiEAvxtiuMwx3w@public.gmane.org> wrote:> > Thanks Bob. I thought of that myself but wanted to double check that > there''s no other more direct way to do it.It looks like you''ll be able to set html options in the future: http://dev.rubyonrails.org/ticket/6000 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---