I have the following code, but can''t seem to get the class attribute to show up in the generated select elements. I saw something about a bug/patch. However, as am still learning RoR I didn''t want to jump to conclusions. Anyone see anything wrong: <%= f.date_select :expiration_date, :order => [:month, :year], :discard_day => true, :class => "dtfld" %> I''ve also tried: <%= f.date_select :expiration_date, {:order => [:month, :year], :discard_day => true}, :class => "dtfld" %> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Try this <%= f.date_select :expiration_date, {:order => [:month, :year], :discard_day => true},{ :class => "dtfld"} %> On Mar 14, 1:59 am, Jason <mccreary.ja...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have the following code, but can''t seem to get the class attribute > to show up in the generated select elements. I saw something about a > bug/patch. However, as am still learning RoR I didn''t want to jump to > conclusions. Anyone see anything wrong: > > <%= f.date_select :expiration_date, :order => > [:month, :year], :discard_day => true, :class => "dtfld" %> > > I''ve also tried: > > <%= f.date_select :expiration_date, {:order => > [:month, :year], :discard_day => true}, :class => "dtfld" %>--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks, that worked. Still learning when to hash it up ;) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---