rails/rails — pull request #5553 by butcher (2012-03-22 22:24:11+00:00)
Title: Extend date_select helper functionality.

Often we need to have date selectors with different styles. (Most often different weight.) Unfortunately date_select helper don`t provide possibility to set different CSS classes. This commit extend date_select helper with option :css_by_type that set special classes for generated 'select' tags. Class names equal data type, for example:
f.date_select :birthday, :css_by_type => true
generate:
...
...
...

Hope it will by helpfully.