how to add class to date_select helper

john wrote:

I have this helper and would like to add a html class to each of the select box's it generates, however I have been unable to find a way?

<%= f.date_select 'date_of_birth', :order => [:day,:month,:year], :start_year => 1940, :end_year => Time.now.year, :include_blank => true %>

Any suggestions?

One technique I remember reading about here was to surround the selectors with a div having the appropriate class, and use CSS selector ".<class> select" to set the styles.