No CSS styles for date_select, datetime_select

Adam Block wrote:

Adding :class => "some_css_class" to the form.date_select or
form.datetime_select helpers doesn't do anything; the resulting HTML has
no class= attribute in the <select> tag. Is this a bug in date_helper.rb
or am I doing something wrong?

When an HTML tag doesn't work I always try :html => { :some => 'tag' }. As far as I can tell most tag builders support that.

Hey Adam-

  Yeah the date selectors don't allow you to pass html options, lame. The way I have worked around this was to use a little js:

<script>
$$('select').each(function(el) {
   if(el.className == ""){
     el.addClassName("date-required");
   }
});
</script>

Cheers-
-- Ezra Zygmuntowicz-- Lead Rails Evangelist
-- ez@engineyard.com
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)